/* ============================================
   GALLERY PAGE - ENHANCED STYLES
   Wikin Municipality Template
   ============================================ */

:root {
    --moif-blue-dark: #0D1B3E;
    --moif-blue: #1A2B4A;
    --moif-gold: #C9A227;
    --moif-gold-bright: #F4D03F;
    --moif-white: #FFFFFF;
    --moif-light-bg: #F8F9FA;
    --moif-border: #E9ECEF;
    --moif-text: #495057;
    --moif-text-light: #6C757D;
}
 
/* ============================================
   GALLERY STATS SECTION
   ============================================ */
.gallery-stats-section {
    position: relative;
    margin-top: -50px;
    z-index: 10;
    margin-bottom: 50px;
}

.stats-wrapper {
    max-width: 1140px;
    margin: 0 auto;
}

.stat-card-gallery {
    background: var(--moif-white);
    border: 1px solid var(--moif-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.stat-card-gallery:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--moif-gold);
}

.stat-icon-gallery {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, 
        rgba(201, 162, 39, 0.1), 
        rgba(244, 208, 63, 0.08));
    border: 3px solid var(--moif-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.stat-icon-gallery i {
    font-size: 32px;
    color: var(--moif-gold);
    transition: all 0.4s ease;
}

.stat-card-gallery:hover .stat-icon-gallery {
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    transform: scale(1.1) rotate(10deg);
}

.stat-card-gallery:hover .stat-icon-gallery i {
    color: var(--moif-white);
    transform: rotate(-10deg);
}

.stat-content-gallery h3 {
    color: var(--moif-blue-dark);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 5px;
    line-height: 1;
}

.stat-content-gallery span {
    color: var(--moif-text-light);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header-enhanced {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--moif-gold);
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 28px;
    color: var(--moif-white);
}

.section-text {
    flex: 1;
}

.section-title-main {
    color: var(--moif-blue-dark);
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
}

.section-subtitle {
    color: var(--moif-text-light);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   GALLERY ALBUM CARDS
   ============================================ */
.gallery-albums-section {
    background: var(--moif-light-bg);
}

.gallery-album-card {
    background: var(--moif-white);
    border: 1px solid var(--moif-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-album-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.gallery-album-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--moif-gold);
}

/* Photo Count Badge */
.photo-count-badge {
    position: absolute;
    top: 15px;
    z-index: 10;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
    animation: slideInBadge 0.6s ease 0.3s both;
}

[dir="rtl"] .photo-count-badge {
    left: 15px;
}

[dir="ltr"] .photo-count-badge {
    right: 15px;
}

@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-count-badge i {
    font-size: 16px;
}

/* Album Image */
.album-image-wrapper {
    display: block;
    text-decoration: none;
}

.album-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--moif-light-bg);
}

.album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-album-card:hover .album-image img {
    transform: scale(1.15);
}

/* Album Overlay */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(13, 27, 62, 0.3) 50%,
        rgba(13, 27, 62, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-album-card:hover .album-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-album-card:hover .overlay-content {
    transform: translateY(0);
}

.view-icon {
    width: 60px;
    height: 60px;
    background: var(--moif-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    animation: bounceIcon 1s infinite;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.view-icon i {
    font-size: 28px;
    color: var(--moif-gold);
}

.view-text {
    color: var(--moif-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Album Content */
.album-content {
    padding: 25px;
}

.album-title {
    margin: 0 0 12px;
}

.album-title a {
    color: var(--moif-blue-dark);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-title a:hover {
    color: var(--moif-gold);
}

.album-description {
    color: var(--moif-text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Album Meta */
.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--moif-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--moif-text);
    font-size: 13px;
    font-weight: 600;
    background: var(--moif-light-bg);
    padding: 6px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(201, 162, 39, 0.1);
    color: var(--moif-gold);
}

.meta-item i {
    color: var(--moif-gold);
    font-size: 15px;
}

/* View Button */
.btn-view-album {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-view-album:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

[dir="rtl"] .btn-view-album:hover {
    transform: translateX(5px);
}

.btn-view-album i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-view-album:hover i {
    transform: translateX(-3px);
}

[dir="rtl"] .btn-view-album:hover i {
    transform: translateX(3px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.gallery-empty-state {
    padding: 80px 20px;
}

.empty-state-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: var(--moif-light-bg);
    border: 3px solid var(--moif-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.empty-icon i {
    font-size: 50px;
    color: var(--moif-text-light);
}

.empty-state-content h3 {
    color: var(--moif-blue-dark);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.empty-state-content p {
    color: var(--moif-text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--moif-blue-dark), var(--moif-blue));
    color: var(--moif-white);
    padding: 14px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 27, 62, 0.2);
}

.btn-back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 27, 62, 0.3);
}

.btn-back-home i {
    font-size: 18px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .page-main-title {
        font-size: 36px;
    }

    .title-icon {
        width: 70px;
        height: 70px;
    }

    .title-icon i {
        font-size: 35px;
    }

    .stat-card-gallery {
        padding: 25px;
    }

    .stat-icon-gallery {
        width: 65px;
        height: 65px;
    }

    .stat-icon-gallery i {
        font-size: 30px;
    }

    .stat-content-gallery h3 {
        font-size: 32px;
    }

    .section-title-main {
        font-size: 28px;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .page-title-gallery {
        padding: 100px 0 60px;
    }

    .page-main-title {
        font-size: 28px;
    }

    .page-description {
        font-size: 15px;
    }

    .title-icon {
        width: 60px;
        height: 60px;
    }

    .title-icon i {
        font-size: 30px;
    }

    .gallery-stats-section {
        margin-top: -30px;
        margin-bottom: 30px;
    }

    .stat-card-gallery {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .section-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .section-icon {
        margin: 0 auto;
    }

    .section-text {
        width: 100%;
    }

    .section-title-main {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .album-image {
        height: 240px;
    }

    .album-content {
        padding: 20px;
    }

    .album-title a {
        font-size: 18px;
    }

    .album-meta {
        gap: 10px;
    }
}

/* Small Mobile (<576px) */
@media (max-width: 575px) {
    .page-main-title {
        font-size: 24px;
    }

    .breadcrumb-nav {
        flex-wrap: wrap;
    }

    .stat-icon-gallery {
        width: 60px;
        height: 60px;
    }

    .stat-icon-gallery i {
        font-size: 28px;
    }

    .stat-content-gallery h3 {
        font-size: 28px;
    }

    .stat-content-gallery span {
        font-size: 12px;
    }

    .section-title-main {
        font-size: 22px;
    }

    .album-image {
        height: 200px;
    }

    .album-title a {
        font-size: 17px;
    }

    .photo-count-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .page-title-gallery,
    .breadcrumb-nav,
    .gallery-stats-section,
    .album-overlay,
    .btn-view-album {
        display: none;
    }

    .gallery-album-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .album-image {
        height: 200px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-view-album:focus-visible,
.btn-back-home:focus-visible {
    outline: 3px solid var(--moif-gold);
    outline-offset: 3px;
}





/* ============================================
   GALLERY DETAILS PAGE - ENHANCED STYLES
   Wikin Municipality Template
   ============================================ */

:root {
    --moif-blue-dark: #0D1B3E;
    --moif-blue: #1A2B4A;
    --moif-gold: #C9A227;
    --moif-gold-bright: #F4D03F;
    --moif-white: #FFFFFF;
    --moif-light-bg: #F8F9FA;
    --moif-border: #E9ECEF;
    --moif-text: #495057;
    --moif-text-light: #6C757D;
}

 
/* ============================================
   GALLERY INFO HEADER
   ============================================ */
.gallery-details-section {
    background: var(--moif-light-bg);
}

.gallery-info-header {
    background: var(--moif-white);
    border: 1px solid var(--moif-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.gallery-main-title {
    color: var(--moif-blue-dark);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.gallery-description {
    color: var(--moif-text);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.gallery-info-stats {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.stat-box {
    background: linear-gradient(135deg, rgba(13, 27, 62, 0.03) 0%, rgba(26, 43, 74, 0.02) 100%);
    border: 2px solid var(--moif-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 150px;
    transition: all 0.3s ease;
}

    .stat-box:hover {
        border-color: var(--moif-gold);
        transform: translateY(-3px);
    }

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .stat-icon i {
        font-size: 24px;
        color: var(--moif-white);
    }

.stat-details h3 {
    color: var(--moif-blue-dark);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 3px;
    line-height: 1;
}

.stat-details span {
    color: var(--moif-text-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   SECTION CONTROLS
   ============================================ */
.section-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--moif-white);
    border: 1px solid var(--moif-border);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 30px;
}

.view-mode-buttons {
    display: flex;
    gap: 8px;
}

.view-mode-btn {
    width: 45px;
    height: 45px;
    background: var(--moif-light-bg);
    border: 2px solid var(--moif-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--moif-text);
}

    .view-mode-btn:hover {
        border-color: var(--moif-gold);
        color: var(--moif-gold);
    }

    .view-mode-btn.active {
        background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
        border-color: var(--moif-gold);
        color: var(--moif-white);
    }

    .view-mode-btn i {
        font-size: 20px;
    }

.photos-count-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--moif-text);
    font-size: 14px;
    font-weight: 600;
}

    .photos-count-display i {
        color: var(--moif-gold);
        font-size: 18px;
    }

/* ============================================
   PHOTOS GRID
   ============================================ */
.photos-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 50px;
}

    /* Grid View */
    .photos-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    /* Masonry View */
    .photos-grid.masonry-view {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        grid-auto-rows: 10px;
    }

        .photos-grid.masonry-view .photo-item {
            grid-row-end: span 30;
        }

            .photos-grid.masonry-view .photo-item:nth-child(3n) {
                grid-row-end: span 40;
            }

            .photos-grid.masonry-view .photo-item:nth-child(5n) {
                grid-row-end: span 35;
            }

/* Photo Item */
.photo-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

    .photo-item.animate-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Main Photo Badge */
.main-photo-badge {
    position: absolute;
    top: 15px;
    z-index: 10;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: var(--moif-white);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    animation: starBadge 2s infinite;
}

[dir="rtl"] .main-photo-badge {
    left: 15px;
}

[dir="ltr"] .main-photo-badge {
    right: 15px;
}

@keyframes starBadge {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.main-photo-badge i {
    font-size: 14px;
}

/* Photo Image */
.photo-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--moif-light-bg);
}

.masonry-view .photo-image-wrapper {
    height: 100%;
}

.photo-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-item:hover .photo-image-wrapper img {
    transform: scale(1.1);
}

/* Photo Overlay */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 27, 62, 0.3) 50%, rgba(13, 27, 62, 0.90) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    transition: transform 0.4s ease;
}

.photo-item:hover .overlay-content {
    transform: translate(-50%, -50%) scale(1);
}

.btn-view-photo,
.btn-download-photo {
    width: 55px;
    height: 55px;
    background: var(--moif-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--moif-gold);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .btn-view-photo:hover,
    .btn-download-photo:hover {
        background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
        color: var(--moif-white);
        transform: scale(1.15);
    }

    .btn-view-photo i,
    .btn-download-photo i {
        font-size: 24px;
    }

.photo-number {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(13, 27, 62, 0.9);
    color: var(--moif-white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .lightbox-modal.active {
        opacity: 1;
        visibility: visible;
    }

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    background: var(--moif-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--moif-blue-dark);
    z-index: 11;
}

[dir="rtl"] .lightbox-close {
    left: 0;
}

[dir="ltr"] .lightbox-close {
    right: 0;
}

.lightbox-close:hover {
    background: #dc3545;
    color: var(--moif-white);
    transform: rotate(90deg);
}

.lightbox-close i {
    font-size: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--moif-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--moif-blue-dark);
}

    .lightbox-nav:hover {
        background: var(--moif-gold);
        color: var(--moif-white);
        transform: translateY(-50%) scale(1.1);
    }

.lightbox-prev {
    right: -70px;
}

[dir="rtl"] .lightbox-prev {
    right: auto;
    left: -70px;
}

.lightbox-next {
    left: -70px;
}

[dir="rtl"] .lightbox-next {
    left: auto;
    right: -70px;
}

.lightbox-nav i {
    font-size: 24px;
}

.lightbox-image-wrapper {
    background: var(--moif-white);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

    .lightbox-image-wrapper img {
        max-width: 80vw;
        max-height: 75vh;
        width: auto;
        height: auto;
        display: block;
        border-radius: 4px;
    }

.lightbox-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 15px 20px;
    background: var(--moif-white);
    border-radius: 25px;
}

.lightbox-counter {
    color: var(--moif-blue-dark);
    font-size: 14px;
    font-weight: 700;
}

.lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

    .lightbox-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
    }

/* ============================================
   GALLERY ACTIONS
   ============================================ */
.gallery-actions {
    display: flex;
    justify-content: center;
}

.btn-back-galleries {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--moif-blue-dark), var(--moif-blue));
    color: var(--moif-white);
    padding: 14px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 27, 62, 0.2);
}

    .btn-back-galleries:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(13, 27, 62, 0.3);
    }

    .btn-back-galleries i {
        font-size: 18px;
    }

/* ============================================
   EMPTY STATE
   ============================================ */
.gallery-empty-state {
    padding: 80px 20px;
    text-align: center;
}

.empty-state-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: var(--moif-light-bg);
    border: 3px solid var(--moif-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

    .empty-icon i {
        font-size: 50px;
        color: var(--moif-text-light);
    }

.empty-state-content h3 {
    color: var(--moif-blue-dark);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.empty-state-content p {
    color: var(--moif-text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ============================================
   OTHER GALLERIES SECTION
   ============================================ */
.other-galleries-section {
    padding: 80px 0;
    background: var(--moif-white);
}

.other-album-card {
    background: var(--moif-white);
    border: 1px solid var(--moif-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .other-album-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
        border-color: var(--moif-gold);
    }

.album-card-link {
    text-decoration: none;
    display: block;
}

.photo-count-badge-small {
    position: absolute;
    top: 10px;
    z-index: 10;
    background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
    color: var(--moif-white);
    padding: 5px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
}

[dir="rtl"] .photo-count-badge-small {
    left: 10px;
}

[dir="ltr"] .photo-count-badge-small {
    right: 10px;
}

.album-image-small {
    position: relative;
    height: 180px;
    overflow: hidden;
}

    .album-image-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.other-album-card:hover .album-image-small img {
    transform: scale(1.1);
}

.album-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 27, 62, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.other-album-card:hover .album-overlay-small {
    opacity: 1;
}

.album-overlay-small i {
    font-size: 40px;
    color: var(--moif-white);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.album-title-small {
    padding: 15px;
}

    .album-title-small h5 {
        color: var(--moif-blue-dark);
        font-size: 15px;
        font-weight: 700;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.other-album-card:hover .album-title-small h5 {
    color: var(--moif-gold);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .gallery-info-header {
        padding: 30px 25px;
    }

    .gallery-main-title {
        font-size: 28px;
    }

    .gallery-info-stats {
        justify-content: flex-start;
        margin-top: 20px;
    }

    .photos-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .lightbox-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .page-title-gallery-details {
        padding: 100px 0 60px;
    }

    .gallery-info-header {
        padding: 25px 20px;
    }

    .gallery-main-title {
        font-size: 24px;
    }

    .gallery-description {
        font-size: 14px;
    }

    .gallery-info-stats {
        flex-direction: column;
    }

    .stat-box {
        width: 100%;
    }

    .section-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .photos-count-display {
        justify-content: center;
    }

    .photos-grid.grid-view {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photo-image-wrapper {
        height: 280px;
    }

    .lightbox-image-wrapper img {
        max-width: 95vw;
        max-height: 70vh;
    }

    .lightbox-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .gallery-main-title {
        font-size: 20px;
    }

    .stat-details h3 {
        font-size: 24px;
    }

    .photo-image-wrapper {
        height: 250px;
    }

    .btn-view-photo,
    .btn-download-photo {
        width: 45px;
        height: 45px;
    }

        .btn-view-photo i,
        .btn-download-photo i {
            font-size: 20px;
        }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .page-title-gallery-details,
    .breadcrumb-nav,
    .section-controls,
    .photo-overlay,
    .main-photo-badge,
    .gallery-actions,
    .other-galleries-section,
    .lightbox-modal {
        display: none;
    }

    .photo-item {
        break-inside: avoid;
        opacity: 1;
        transform: none;
    }

    .photos-grid {
        display: block;
    }

    .photo-item {
        display: inline-block;
        width: 48%;
        margin: 1%;
        vertical-align: top;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-view-photo:focus-visible,
.btn-download-photo:focus-visible,
.btn-back-galleries:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline: 3px solid var(--moif-gold);
    outline-offset: 3px;
}