/* In-post Hero View */
.hinden-gallery-hero {
    position: relative;
    cursor: pointer;
    margin: 30px 0 15px 0;
}
.hinden-gallery-hero.hg-rounded .hinden-gallery-hero-image-wrap {
    border-radius: 8px;
    overflow: hidden;
}
.hinden-gallery-hero.hg-square .hinden-gallery-hero-image-wrap {
    border-radius: 0;
    overflow: hidden;
}
.hinden-gallery-hero-image-wrap {
    position: relative;
}
.hinden-gallery-hero-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.hinden-gallery-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #fff;
}
.hinden-gallery-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    max-width: 70%;
}
.hinden-gallery-hero-badge {
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
}
.hinden-gallery-hero-caption {
    padding: 10px 0 5px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* Responsive Hero Styles */
@media (max-width: 768px) {
    .hinden-gallery-hero-overlay {
        padding: 40px 15px 15px;
    }
    .hinden-gallery-hero-title {
        font-size: 1.15rem;
        max-width: 75%;
    }
    .hinden-gallery-hero-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}
@media (max-width: 480px) {
    .hinden-gallery-hero-overlay {
        padding: 30px 12px 12px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
        gap: 8px;
    }
    .hinden-gallery-hero-title {
        font-size: 1.05rem;
        max-width: 100%;
        line-height: 1.3;
    }
    .hinden-gallery-hero-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .hinden-gallery-hero-title svg {
        width: 16px !important;
        height: 16px !important;
        margin-right: 4px !important;
    }
}

/* Lightbox Styles */
.hg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: inherit;
}
.hg-lightbox.hg-active {
    opacity: 1;
    pointer-events: auto;
}
.hg-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}
.hg-lightbox-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}
.hg-lightbox-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hg-lightbox-close svg {
    fill: currentColor;
    width: 28px;
    height: 28px;
    display: block;
}
.hg-lightbox-close:hover {
    color: #fff;
}
.hg-lightbox-content {
    display: flex;
    flex: 1;
    min-height: 0; /* Important for flex child scrolling */
}
.hg-lightbox-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.hg-lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.hg-lightbox-sidebar {
    width: 350px;
    padding: 20px 40px;
    background: #000;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #1e293b;
    overflow-y: auto;
}
.hg-lightbox-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.hg-lightbox-counter {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}
.hg-lightbox-arrows {
    display: flex;
    gap: 10px;
}
.hg-lightbox-arrow {
    background: transparent;
    border: 1px solid #666;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.hg-lightbox-arrow svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
    display: block;
}
.hg-lightbox-arrow:hover {
    border-color: #fff;
    color: #fff;
}
.hg-lightbox-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.hg-lightbox-caption {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .hg-lightbox-content {
        flex-direction: column;
    }
    .hg-lightbox-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #1e293b;
        flex: 1;
    }
}
