/* ===== Home Page template: gallery strip (page_home.php) ===== */
/* Continues the cream FAQ background above. Equal-height bordered cards with a caption bar. */
.ukl-gallery{padding:8px 0 56px;background:linear-gradient(#f7ecd9 0,#fcf7ee 100%);overflow:hidden}
.ukl-gallery.has-heading{padding-top:8px}
.ukl-gallery__title{box-sizing:border-box;max-width:1520px;margin:0 auto 32px;padding:0 24px;color:#2a1006;font-size:36px;font-weight:800;line-height:1.2;text-align:center}

/* Before Slick: a simple row of the first five. */
.ukl-gallery__list{display:flex;align-items:center;gap:16px;padding:12px 16px}
.ukl-gallery__list:not(.slick-initialized) .ukl-gallery__item{flex:0 0 calc((100% - 64px) / 5)}
.ukl-gallery__list:not(.slick-initialized) .ukl-gallery__item:nth-child(n+6){display:none}
.ukl-gallery__list.slick-initialized{display:block;padding:0}
.ukl-gallery__list .slick-track{display:flex;align-items:center}
.ukl-gallery__list.slick-initialized .ukl-gallery__item{box-sizing:border-box;padding:12px 8px 20px}

/* Cards: all the same height, white border, soft shadow (is-tall no longer changes the height). */
.ukl-gallery__link,.ukl-gallery__item.is-tall .ukl-gallery__link{position:relative;display:block;height:clamp(280px,23vw,340px);box-sizing:border-box;border:2px solid #fff;border-radius:16px;overflow:hidden;background:#e8dcc3;box-shadow:0 8px 22px rgba(60,30,5,.2)}
.ukl-gallery__img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.ukl-gallery__link:hover .ukl-gallery__img{transform:scale(1.04)}
.ukl-gallery__link:focus-visible{outline:3px solid #1f6b24;outline-offset:3px}

/* Caption bar: dark translucent strip at the bottom with a round arrow button. */
.ukl-gallery__cap{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:8px 14px 8px 20px;background:linear-gradient(rgba(40,25,12,.5),rgba(25,15,8,.72));color:#fff;pointer-events:none}
.ukl-gallery__cap-text{font-size:clamp(16px,1.2vw,19px);font-weight:600;line-height:1.25;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.ukl-gallery__go{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin-left:auto;border-radius:50%;background:#f6ead3;color:#3b1f0c;box-shadow:0 2px 6px rgba(0,0,0,.3);transition:transform .25s ease}
.ukl-gallery__link:hover .ukl-gallery__go{transform:translateX(3px)}

@media only screen and (max-width:1100px){
	.ukl-gallery__link,.ukl-gallery__item.is-tall .ukl-gallery__link{height:280px}
	.ukl-gallery__title{font-size:30px}
}

@media only screen and (max-width:767px){
	.ukl-gallery{padding-bottom:40px}
	.ukl-gallery__title{padding:0 16px;font-size:24px}
	.ukl-gallery__list.slick-initialized .ukl-gallery__item{padding:10px 6px 16px}
	.ukl-gallery__link,.ukl-gallery__item.is-tall .ukl-gallery__link{height:260px;border-radius:12px}
	.ukl-gallery__go{width:38px;height:38px}
}
