/* ==========================================================================
   Estudio Cane - Galería de Obras Specific Styles (gallery.css)
   Tarjetas de Videos YouTube, Grilla de Obras, Lightbox Modal y CTA Final
   ========================================================================== */

/* Tarjetas de Videos */
.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 28px;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

.video-responsive-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
}

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

/* Tarjetas de Grilla de Galería */
.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    margin-bottom: 28px;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.18);
}

.gallery-card .img-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #e8e8e8;
}

.gallery-card.h-tall .img-wrap {
    height: 420px;
}

.gallery-card.h-wide .img-wrap {
    height: 380px;
}

/* Reemplazo de estilo inline en imagen 22 */
.gallery-card .img-wrap.h-440 {
    height: 440px;
}

.gallery-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .img-wrap img {
    transform: scale(1.04);
}

.gallery-card .card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-card .zoom-circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .zoom-circle-btn {
    transform: scale(1);
}

/* Caja CTA de Alto Contraste */
.gallery-cta-card {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px;
    padding: 50px 35px;
    color: #ffffff !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.gallery-cta-card .cta-tag {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.gallery-cta-card h3 {
    color: #ffffff !important;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.gallery-cta-card p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-cta-card .cta-btn-light {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    border-radius: 40px !important;
    padding: 8px 8px 8px 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2) !important;
}

.gallery-cta-card .cta-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35) !important;
}

.gallery-cta-card .cta-btn-light span.btn-text {
    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.gallery-cta-card .cta-btn-light .arrow-icon {
    background: #111111 !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin-left: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.gallery-cta-card .cta-btn-light .arrow-icon svg {
    stroke: #ffffff !important;
    width: 20px !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 50%;
    transform: translateX(-50%);
}

/* Lightbox Modal */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px 20px;
}

.gallery-lightbox-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #ffffff;
    z-index: 2;
}

.lightbox-counter {
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lightbox-main-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

.lightbox-nav-btn:hover {
    background: #ffffff;
    color: #000000;
}

.lightbox-nav-btn.prev {
    left: 20px;
}

.lightbox-nav-btn.next {
    right: 20px;
}

.lightbox-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: rotate(90deg);
}
