
/* Askómedas Grid Bridge 1.1.0 */
.agb-events,
.agb-gallery,
.agb-youtube {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* Events - replica del Events Grid de Essential Grid */
.agb-events {
    column-count: 4;
    column-gap: 14px;
    padding: 20px 40px 40px;
}
.agb-event-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 14px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    border: 8px double #000;
    background: #0a0a0a;
    box-sizing: border-box;
    box-shadow: 0 1px 10px rgba(0,0,0,.16);
}
.agb-event-link {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
}
.agb-event-media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111;
}
.agb-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.agb-event-content {
    min-height: 155px;
    padding: 18px 30px 8px;
    text-align: center;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.agb-event-date {
    font-family: Raleway, sans-serif;
    font-size: 18px;
    line-height: 25px;
    font-weight: 800;
    text-transform: uppercase;
}
.agb-event-title {
    margin-top: 8px;
    font-family: "Josefin Sans", Raleway, sans-serif;
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
    letter-spacing: 4px;
}
.agb-event-city {
    margin-top: auto;
    transform: translateY(14px);
    padding: 4px 12px 3px;
    color: #000;
    background: #fff;
    font-family: Raleway, sans-serif;
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Galerías - B/N -> color */
.agb-gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 2px;
}
.agb-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}
.agb-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter .38s ease, transform .38s ease;
}
.agb-gallery-item:hover img,
.agb-gallery-item:focus img {
    filter: grayscale(0);
}
.agb-gallery-item:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* YouTube / Directos */
.agb-youtube {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.agb-youtube-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
    text-decoration: none !important;
}
.agb-youtube-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.agb-youtube-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: #fff;
    background: rgba(10,6,6,.65);
    opacity: 0;
    transition: opacity .28s ease;
    font-family: Raleway, sans-serif;
}
.agb-youtube-item:hover .agb-youtube-overlay,
.agb-youtube-item:focus .agb-youtube-overlay {
    opacity: 1;
}
.agb-youtube-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    line-height: 20px;
    font-weight: 800;
}
.agb-heart { font-size: 24px; line-height: 1; }
.agb-comment {
    font-size: 23px;
    line-height: 1;
    transform: scaleX(1.15);
}
.agb-youtube-play {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding-left: 4px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    font-size: 24px;
    line-height: 1;
}
.agb-grid-message {
    max-width: 900px;
    margin: 30px auto;
    padding: 16px;
    background: #fff3cd;
    color: #664d03;
    text-align: center;
}

/* Instagram legacy: la página estaba publicada pero el feed dependía de un token EG */
.agb-instagram-legacy {
    width: min(900px, calc(100% - 32px));
    margin: 70px auto;
    text-align: center;
}
.agb-instagram-legacy a {
    display: inline-block;
    padding: 16px 24px;
    border: 2px solid #111;
    color: #111 !important;
    font-family: "Josefin Sans", Raleway, sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none !important;
}

/* Lightbox propio */
.agb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    background: rgba(43,43,43,.97);
    color: #fff;
}
.agb-lightbox.is-open { display: block; }
.agb-lightbox-top {
    position: absolute;
    inset: 0 0 auto;
    height: 30px;
    padding: 6px 18px;
    box-sizing: border-box;
    font: 11px/18px Arial, sans-serif;
    color: #ddd;
}
.agb-lightbox-stage {
    position: absolute;
    inset: 28px 42px 28px;
    display: grid;
    place-items: center;
}
.agb-lightbox-stage img {
    display: block;
    max-width: min(88vw, 1500px);
    max-height: calc(100vh - 70px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.agb-lightbox-close,
.agb-lightbox-prev,
.agb-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(0,0,0,.28);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}
.agb-lightbox-close {
    top: 0;
    right: 0;
    width: 38px;
    height: 30px;
    font-size: 22px;
}
.agb-lightbox-prev,
.agb-lightbox-next {
    top: 50%;
    width: 42px;
    height: 54px;
    margin-top: -27px;
    font-size: 30px;
}
.agb-lightbox-prev { left: 0; }
.agb-lightbox-next { right: 0; }

@media (max-width: 1199px) {
    .agb-events { column-count: 3; padding-left: 30px; padding-right: 30px; }
    .agb-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .agb-events { column-count: 1; padding: 10px; }
    .agb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agb-youtube { grid-template-columns: 1fr; }
    .agb-lightbox-stage { inset: 42px 24px 24px; }
}


/* 1.1.0: responsive sizing without changing the validated desktop layout. */
.agb-events img,
.agb-gallery img,
.agb-youtube img {
    max-width: 100%;
}

@media (max-width: 767px) {
    .agb-events,
    .agb-gallery,
    .agb-youtube {
        width: min(100% - 20px, 680px);
    }
    .agb-event-content {
        min-height: 132px;
        padding: 16px 18px 8px;
    }
    .agb-event-title {
        overflow-wrap: anywhere;
    }
    .agb-youtube {
        gap: 12px;
    }
    .agb-youtube-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 62%);
        align-items: flex-end;
        justify-content: flex-end;
        padding: 14px;
        box-sizing: border-box;
    }
    .agb-youtube-stat {
        display: none;
    }
    .agb-youtube-play {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}
