/* ============================================================
   DONRESOURCES PUBLIC GALLERY
   File: public_html/assets/css/gallery.css
   ============================================================ */

.gallery-enterprise-section {
    background: #f6f8fb;
}

.gallery-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 19px;
    margin-bottom: 26px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.gallery-alert i {
    margin-top: 3px;
    font-size: 20px;
}

.gallery-alert strong,
.gallery-alert span {
    display: block;
}

.gallery-alert-danger {
    color: #8f1f2c;
    background: #fff0f1;
    border: 1px solid #f3c5ca;
}

.gallery-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.gallery-stat-card {
    padding: 28px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0, 31, 63, 0.08);
}

.gallery-stat-card i {
    margin-bottom: 13px;
    color: #c9a227;
    font-size: 34px;
}

.gallery-stat-card strong {
    display: block;
    color: #001f3f;
    font-size: 36px;
    line-height: 1;
}

.gallery-stat-card span {
    display: block;
    margin-top: 9px;
    color: #506071;
    font-weight: 700;
}

.gallery-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.gallery-filter-btn {
    padding: 11px 25px;
    color: #001f3f;
    background: #ffffff;
    border: 1px solid #c9a227;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    color: #001f3f;
    background: #c9a227;
    transform: translateY(-2px);
}

.gallery-grid-enterprise {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.gallery-card-enterprise {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(0, 31, 63, 0.09);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-card-enterprise:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 65px rgba(0, 31, 63, 0.15);
}

.gallery-featured-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    color: #001f3f;
    background: rgba(201, 162, 39, 0.96);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 31, 63, 0.16);
}

.gallery-media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gallery-card-media {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #003366, #001f3f);
}

.gallery-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-card-enterprise:hover .gallery-card-media img {
    transform: scale(1.07);
}

.gallery-view-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 31, 63, 0.46);
    font-size: 32px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card-enterprise:hover .gallery-view-overlay {
    opacity: 1;
}

.gallery-video-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-video-file {
    position: relative;
}

.gallery-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #c9a227;
    background: rgba(0, 31, 63, 0.38);
    font-size: 52px;
}

.gallery-missing-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #c9a227;
    font-size: 15px;
    font-weight: 800;
}

.gallery-missing-media i {
    font-size: 48px;
}

.gallery-card-body {
    padding: 20px;
}

.gallery-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #4e5e70;
    background: #f3f6f9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.gallery-card-meta i {
    color: #c9a227;
}

.gallery-card-body h3 {
    margin: 14px 0 9px;
    color: #001f3f;
    font-size: 19px;
    line-height: 1.4;
}

.gallery-caption {
    margin: 0;
    color: #5c6978;
    font-size: 14px;
    line-height: 1.65;
}

.gallery-empty {
    padding: 76px 22px;
    text-align: center;
    background: #ffffff;
    border: 2px dashed #c9a227;
    border-radius: 24px;
}

.gallery-empty i {
    margin-bottom: 18px;
    color: #c9a227;
    font-size: 64px;
}

.gallery-empty h3 {
    margin-bottom: 10px;
    color: #001f3f;
}

.gallery-empty p {
    margin: 0;
    color: #526173;
}

@media (max-width: 1100px) {
    .gallery-grid-enterprise {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .gallery-stats-grid,
    .gallery-grid-enterprise {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .gallery-stats-grid,
    .gallery-grid-enterprise {
        grid-template-columns: 1fr;
    }

    .gallery-card-media {
        height: 255px;
    }
}
