/* ═════════ GALLERY PAGE STYLES ═════════ */

/* Page Hero */
.page-hero {
    background: url('../images/innerbanner/gallery.jpg');
    background-size: cover;
	background-position: center;
    padding: 60px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    top: 70px;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(63, 7, 20, 0.3);
    z-index: 1;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .eyebrow {
    color: var(--orange);
    display: block;
    margin-bottom: 16px;
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
}

.page-hero .sec-h {
    color: var(--white);
    margin-bottom: 20px;
    font-family: var(--ff-head);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    text-transform: uppercase;
    line-height: 1.05;
}

.page-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0 20px;
    background: var(--cream);
}

/* Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    border: 2px solid var(--maroon);
    border-radius: 50px;
    font-family: var(--ff-head);
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--maroon);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--maroon);
    transition: width 0.4s var(--ease);
    z-index: 0;
}

.filter-btn i,
.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--maroon);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(110,15,36,0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn i {
    font-size: 1rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s var(--ease);
    opacity: 0;
    transform: translateY(30px);
    background: var(--cream-2);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.hide {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--cream-2);
}

/* Image loading states */
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), opacity 0.5s ease;
    opacity: 0;
}

.gallery-image img.loaded {
    opacity: 1;
}

.gallery-image img.loading {
    opacity: 0.5;
}

.gallery-image img.error {
    opacity: 0.3;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.12);
}

/* Loading skeleton animation */
.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
    pointer-events: none;
}

.gallery-image img.loaded + .gallery-overlay ~ .gallery-image::before,
.gallery-image:has(img.loaded)::before {
    display: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(63,7,20,0.95) 0%, rgba(63,7,20,0.7) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    display: flex;
    align-items: flex-end;
    padding: 28px;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.category-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--maroon-deep);
    font-family: var(--ff-head);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    display:none;
}

.category-badge.restaurant {
    background: var(--green);
    color: var(--white);
}

.category-badge.video {
    background: #e74c3c;
    color: var(--white);
}

.overlay-content h3 {
    font-family: var(--ff-head);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.overlay-content p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--maroon-deep);
    padding: 10px 22px;
    border-radius: 30px;
    font-family: var(--ff-head);
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
}

.view-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,166,35,0.4);
}

/* Video Items */
.video-item .gallery-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s var(--ease);
}

.video-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--white);
}

.video-play-icon i {
    color: var(--maroon-deep);
    font-size: 1.8rem;
    margin-left: 6px;
}

/* Load More */
.gallery-cta {
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20,4,2,0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--maroon);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    background: var(--orange);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: var(--orange);
    color: var(--maroon-deep);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    margin-top: 24px;
    padding: 0 20px;
}

.lightbox-caption h3 {
    font-family: var(--ff-head);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.lightbox-caption p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(20,4,2,0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--maroon);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-close:hover {
    background: var(--orange);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .page-hero {
        padding: 10px 0 0px;
    }
    
    .gallery-section {
        padding: 80px 0;
    }
    
    .gallery-filters {
        gap: 3px;
    }
    
    .filter-btn {
        padding: 12px 22px;
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .gallery-image {
        height: 280px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-nav.prev {
        left: 15px;
    }
    
    .lightbox-nav.next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
	.page-hero p{display:none;}
	.page-hero .sec-h{
		font-size:28px;
	}
}

@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        margin-bottom: 10px;
    }
     .filter-btn i {display:none;}
    .filter-btn {
        max-width: 300px;
        justify-content: center;
    }
    
    .overlay-content h3 {
        font-size: 1.3rem;
    }
    
    .lightbox-caption h3 {
        font-size: 1.4rem;
    }
	.page-hero p{display:none;}
	.page-hero .sec-h{
		font-size:28px;
	}
}