/* 2026-11-25 feedback: homepage cards only. Preserve global wine/gold palette. */
body.home .home-wrap .primary > .block-post-wrap-item .block-post-wrap-head {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 31px;
  line-height: 31px;
  z-index: 2;
  flex: 0 0 31px;
  background: linear-gradient(95deg, #741d25, #9a302d);
}
body.home .home-wrap .primary > .block-post-wrap-item .block-post-wrap-head::before,
body.home .home-wrap .primary > .block-post-wrap-item .block-post-wrap-head::after {
  display: none;
}
body.home .home-wrap .primary > .block-post-wrap-item .block-post-wrap-head .ctct-gallery-heading {
  display: block;
  padding: 0 12px;
  color: #fff9ed;
  font-size: 15px;
  font-weight: 700;
}
body.home .home-wrap .primary > .block-post-wrap-item .block-post-wrap-content {
  min-width: 0;
}
body.home .home-wrap .ctct-home-video-current-date,
body.home .home-wrap .ctct-home-video-select small,
body.home .home-wrap .ctct-home-video-all {
  display: none !important;
}
body.home .home-wrap .ctct-home-video-content { padding-bottom: 18px; }
body.home .home-wrap .ctct-home-video-secondary { margin-top: 16px; }
body.home .home-wrap .primary > .block-post-wrap-item:first-child .block-post-wrap-content { padding-top: 0; }
body.home .home-wrap .ctct-home-gallery-card { display:flex; flex-direction:column; min-height:0; }
body.home .home-wrap .ctct-home-gallery-content { padding: 0 10px 12px; flex:1 1 auto; display:flex; flex-direction:column; }
body.home .ctct-gallery-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:auto;
  gap:5px;
  margin-top:0;
}
body.home .ctct-gallery-photo { display:block;overflow:hidden;aspect-ratio:16/9;min-width:0;background:#e4d6c4; }
body.home .ctct-gallery-photo img { display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s; }
body.home .ctct-gallery-photo:hover img { transform:scale(1.04); }
body.home .ctct-gallery-lead { grid-column:span 2;aspect-ratio:16/9; }
body.home .ctct-gallery-hidden {display:none !important;}
body.home .ctct-gallery-more {
  margin-top:auto;
  padding:10px 12px;
  border:1px solid #d9b888;
  color:#76232a;
  background:#fff8e8;
  cursor:pointer;
  text-align:left;
  font:700 13px/1.4 Arial,sans-serif;
}
body.home .ctct-gallery-more span { float:right; }
body.home .ctct-gallery-more:hover,body.home .ctct-gallery-more:focus-visible {background:#f4e4cb;}
body.home .ctct-gallery-empty {padding:20px 5px;line-height:1.6;}
.ctct-gallery-lightbox {position:fixed;z-index:999999;inset:0;background:rgba(17,12,15,.94);display:flex;align-items:center;justify-content:center;}
.ctct-gallery-lightbox img {max-width:calc(100vw - 100px);max-height:calc(100vh - 105px);object-fit:contain;}
.ctct-gallery-lightbox button {position:absolute;border:0;background:rgba(255,255,255,.17);color:#fff;cursor:pointer;padding:8px 15px;font-size:30px;}
.ctct-gallery-lightbox .ctct-gallery-close {right:15px;top:15px;}
.ctct-gallery-lightbox .ctct-gallery-prev {left:12px;top:48%;}
.ctct-gallery-lightbox .ctct-gallery-next {right:12px;top:48%;}
.ctct-gallery-lightbox .ctct-gallery-count {position:absolute;bottom:18px;color:#fff;font:14px Arial,sans-serif;}
@media(max-width:890px){
  body.home .home-wrap .primary > .block-post-wrap-item:first-child .post1-item:nth-child(n+2){margin-top:12px;}
  .ctct-gallery-lightbox img{max-width:calc(100vw - 70px);}
}

/* Public standalone gallery page, preserving website brand colors. */
body.home .ctct-gallery-more {display:block;text-decoration:none;}
.ctct-gallery-page {padding:26px 0 65px;background:#f9f3eb;min-height:600px;}
.ctct-gallery-page .container {max-width:1170px;}
.ctct-gallery-breadcrumb {margin:0 0 20px;color:#73565b;font-size:13px;}
.ctct-gallery-breadcrumb a {color:#77232c;text-decoration:none;}
.ctct-gallery-breadcrumb span {margin-left:6px;}
.ctct-gallery-page-heading {display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:2px solid #9c3e30;padding:10px 0 18px;margin-bottom:24px;}
.ctct-gallery-page-heading h1 {font:bold 27px/1.2 Arial,sans-serif;margin:0;color:#7d242b;}
.ctct-gallery-page-heading span {font:600 14px Arial,sans-serif;color:#7d242b;white-space:nowrap;}
.ctct-gallery-page-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.ctct-gallery-page-image {position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#ecddcb;border-radius:5px;border:1px solid #e0ceb6;}
.ctct-gallery-page-image img {width:100%;height:100%;object-fit:cover;display:block;}
.ctct-gallery-page-image:hover img {transform:scale(1.035);transition:transform .2s;}
.ctct-gallery-zoom {position:absolute;bottom:9px;right:9px;color:#fff;background:#7b242c;padding:4px 9px;border-radius:3px;font-size:23px;opacity:0;transition:opacity .2s;}
.ctct-gallery-page-image:hover .ctct-gallery-zoom {opacity:1;}
.ctct-gallery-pagination {display:flex;gap:8px;justify-content:center;margin-top:28px;}
.ctct-gallery-pagination a {padding:8px 12px;border:1px solid #d2b69f;text-decoration:none;color:#76232a;}
.ctct-gallery-pagination a[aria-current] {background:#76232a;color:#fff;}
.ctct-gallery-no-photos {margin:25px 0;}
@media(max-width:767px){.ctct-gallery-page {padding:15px 0 35px;}.ctct-gallery-page-heading h1 {font-size:22px;}.ctct-gallery-page-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}}
