/* Gallery Page Styles - Using site's existing HHInter font for consistency */

/* General Section Styling */
.hh-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.hh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    padding-bottom: 0.5em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--hh-brand-orange), var(--hh-brand-teal));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Gallery Stats Section */
.gallery-stats-section {
    background: linear-gradient(135deg, rgba(4, 7, 21, 0.95), rgba(0, 0, 0, 0.9)), url('../Website Images/gallery-stats-bg.jpg') center/cover fixed;
    padding: 5rem 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gallery-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(4, 7, 21, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 188, 212, 0.3);
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--hh-brand-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, var(--hh-brand-orange), var(--hh-brand-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(2) .stat-number {
    background: linear-gradient(45deg, var(--hh-brand-teal), var(--hh-brand-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Video Showcase Section */
.video-showcase-section {
    background: rgba(0,0,0,0.3);
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 25px rgba(0, 188, 212, 0.3);
    border: 2px solid var(--hh-brand-teal);
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(255, 107, 53, 0.4);
    border-color: var(--hh-brand-orange);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Category Filter Tabs */
.gallery-filters-section {
    padding: 3rem 0 2rem;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #040715 0%, rgba(4,7,21,0.98) 100%);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    margin-bottom: 3rem;
}

.gallery-filter-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.gallery-filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.gallery-filter-btn .icon {
    font-size: 1.1em;
}

.gallery-filter-btn .count {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2em 0.6em;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--hh-brand-teal);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-filter-btn.active {
    background: linear-gradient(90deg, var(--hh-brand-orange), var(--hh-brand-teal));
    border-color: var(--hh-brand-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.gallery-filter-btn.active .count {
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

/* Gallery Grid */
.gallery-grid-section {
    padding-top: 0;
    padding-bottom: 6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2.5rem;
    }
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.gallery-item::before {
    content: '';
    display: block;
    padding-bottom: 75%;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.8) grayscale(0.2);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(4, 7, 21, 0.8) 0%, rgba(4, 7, 21, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1) grayscale(0);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 188, 212, 0.3);
    border-color: var(--hh-brand-teal);
}

.gallery-item .title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.gallery-item .location {
    font-size: 0.9rem;
    color: var(--hh-brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.15s, opacity 0.4s ease 0.15s;
    font-weight: 500;
}

.gallery-item:hover .title,
.gallery-item:hover .location {
    transform: translateY(0);
    opacity: 1;
}

/* No results message */
.no-results-message {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4rem;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Lightbox styling */
.hh-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hh-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
}

.hh-lightbox-img {
    max-width: 90%;
    max-height: 85%;
    display: block;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.5), 0 0 20px rgba(0, 188, 212, 0.5);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hh-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    background: none;
    border: none;
}

.hh-lightbox-close:hover,
.hh-lightbox-close:focus {
    color: var(--hh-brand-orange);
    text-decoration: none;
    transform: rotate(90deg);
}

.hh-lightbox-info {
    margin-top: 15px;
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 0.5s forwards 0.2s;
}

.hh-lightbox-prev, .hh-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 2.5rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.5);
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    border: none;
}

.hh-lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.hh-lightbox-prev {
    left: 0;
}

.hh-lightbox-prev:hover,
.hh-lightbox-next:hover {
    background-color: rgba(255, 107, 53, 0.8);
    color: white;
}

.hh-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.lightbox-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.lightbox-type {
    font-weight: 600;
    color: var(--hh-brand-orange);
    margin-bottom: 0.5rem;
}

.lightbox-description {
    opacity: 0.8;
    line-height: 1.6;
}
