/* ── wrapper ── */
.sf-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ── breadcrumbs ── */
.sf-breadcrumbs {
    padding: .75rem 0 1.25rem;
    font-size: .85rem;
    color: #666;
}

.sf-breadcrumbs a{text-decoration:none;}

/* ── dwukolumnowa siatka ── */
.sf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .sf-grid { grid-template-columns: 1fr; }
}

/* ── LEWA: szczegóły ── */
.sf-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.festival-details-row {
    /*display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;*/
	display:grid;
	grid-template-columns:140px 1fr;
    gap: 6px;
    padding: .3rem 0;
    border-bottom: 1px solid #eee;
}
@media (max-width: 400px) {
    .festival-details-row {
        display:flex;
        flex-wrap:wrap;
    }
}

.festival-details-row:last-of-type { border-bottom: none; }

.sf-row-title { border-bottom: none; padding-bottom: 0; }

.list-festival.sf-label {
    font-weight: 700;
    font-size: 15px;
    color: #231F20;
    margin: 0;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.sf-value {
    font-size: 16px;
    color: #231F20;
    margin: 0;
	min-width: 0;
    word-break: break-word;
}

.sf-sep { margin: 0 15px; }
	
.sf-value a {
    color: var(--global-palette1, #1a6fa8);
    text-decoration: none;
}
.sf-value a:hover { text-decoration: none; }

.festival-single-content-after-details {
    margin-top: 1.5rem;
    font-size: .95rem;
    line-height: 1.7;
	min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ── PRAWA: media ── */
.sf-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.sf-view-more {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: 1rem;
    color: var(--global-palette3, #333);
    text-decoration: none;
    margin: 22px 0 1rem;
}
.sf-view-more:hover { opacity: .5; }
.sf-arrow { font-size: 1.1em; }

/* socials */
.sf-socials {
    font-size: 16px;
    margin-bottom: 1rem;
}
.sf-socials a {
    color: var(--global-palette1, #0096ca);
    text-decoration: none;
    font-weight: 600;
}
.sf-socials a:hover { text-decoration: none; }

/* YouTube embeds */
.sf-yt-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}
.sf-yt-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* galeria — 4 kolumny jak w Kadence */
.sf-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-top: 2.5rem;
}
@media (max-width: 900px) { .sf-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sf-gallery { grid-template-columns: repeat(2, 1fr); } }
 
.sf-gallery-item img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}
.sf-gallery-item:hover img { opacity: .65; }


/* ── LIGHTBOX ── */
.sf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .72);
    align-items: center;
    justify-content: center;
}
.sf-lightbox.is-open {
    display: flex;
}
 
.sf-lb-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf-lb-img-wrap img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
    transition: opacity .2s ease;
}
 
.sf-lb-close,
.sf-lb-prev,
.sf-lb-next {
    position: fixed;
    background: #101010;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: .5rem;
    transition: opacity .2s;
    z-index: 100000;border-radius:4px;
}
.sf-lb-close:focus,.sf-lb-close:active,
.sf-lb-prev:focus,.sf-lb-prev:active,
.sf-lb-next:focus,.sf-lb-next:active{background: #101010;border:0px!important;}

.sf-lb-close:hover,
.sf-lb-prev:hover,
.sf-lb-next:hover{background:#0096CA;}


.sf-lb-prev svg,
.sf-lb-next svg {
    width: 1.4rem;
    height: auto;
    fill: #fff;
}

.sf-lb-close {
    top: 1.25rem;
    right: 1.5rem;
	width: 35px;
  height: 35px;
}
.sf-lb-prev,
.sf-lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
  height: 50px;
    font-weight: 300;
}
.sf-lb-prev { left: 1.5rem; }
.sf-lb-next { right: 1.5rem; }