.gallery-item {
    position: relative;
    cursor: pointer;
}
.gallery-item--video .gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: none;
}
.portfolio-breadcrumb {
    padding: 1rem 0 0.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}
.portfolio-breadcrumb a {
    text-decoration: underline;
}

.portfolio-gallery-header {
    max-width: 42rem;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 5vw, 3rem) 0;
    text-align: center;
}

.portfolio-gallery-header__title {
    font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin: 0 0 0.65rem;
    color: var(--text, #141414);
    text-transform: none;
}

.portfolio-gallery-header__description {
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--text, #141414) 82%, transparent);
    margin: 0 auto;
    max-width: 36rem;
}

/* Espacio bajo cabecera fija — título/descripción no quedan tapados */
body.portfolio-page .Pbodyportfolio {
    margin-top: 0;
    padding-top: calc(var(--header-h, 6rem) + clamp(1.75rem, 5vw, 3rem));
}
.row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.row > .column {
    float: none !important;
    min-width: 0;
    box-sizing: border-box;
}
.portfolio-draft-banner {
    background: #fef3c7;
    color: #92400e;
    border-bottom: 1px solid #fcd34d;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}
#expandedMedia {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal de galería a pantalla completa */
#myModal.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#myModal .close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1;
    color: #fff;
    z-index: 10002;
    cursor: pointer;
    user-select: none;
}

#myModal .close:hover {
    color: #ccc;
}

#myModal .modal-content {
    position: relative;
    width: 92vw;
    height: 88vh;
    max-width: none;
    max-height: none;
    background: transparent;
    top: auto;
    padding: 0;
}

#myModal .mySlides {
    display: block !important;
    width: 100%;
    height: 100%;
    background: transparent;
}

#myModal .prev,
#myModal .next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
    color: #fff;
    font-size: 2.25rem;
    font-weight: bold;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: background-color 0.2s;
}

#myModal .prev {
    left: 0.5rem;
}

#myModal .next {
    right: 0.5rem;
}

#myModal .prev:hover,
#myModal .next:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

#myModal .numbertext {
    position: fixed;
    top: 1.25rem;
    left: 1.5rem;
    color: #fff;
    font-size: 1rem;
    z-index: 10002;
    padding: 0;
}

#myModal #expandedMedia img,
#myModal #expandedMedia iframe {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

body.gallery-modal-open {
    overflow: hidden;
}
