/* Capistrano Upholstery: additions for the static site.
   Replaces two WordPress plugins that no longer exist: the filterable gallery and the blog carousel. */

/* ---- Gallery page: filter buttons, grid, lightbox hover ---- */
.cu-gallery-filters { list-style: none; margin: 0 0 30px; padding: 0; text-align: center; }
.cu-gallery-filters li { display: inline-block; margin: 4px; padding: 8px 20px; border: 1px solid #2b2b2b; color: #2b2b2b;
  cursor: pointer; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; transition: background .2s, color .2s; }
.cu-gallery-filters li.active, .cu-gallery-filters li:hover { background: #2b2b2b; color: #fff; }
.cu-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
@media (max-width: 767px) { .cu-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.cu-gallery-item { display: block; overflow: hidden; background: #fff; transition: transform .3s, box-shadow .3s; }
.cu-gallery-item.is-hidden { display: none; }
.cu-gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cu-gallery-item:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0, 0, 0, .25); z-index: 1; position: relative; }

/* ---- Home page "Latest blogs" card (was the Divi Blog Carousel plugin) ---- */
.dgbc_blog_carousel .swiper-wrapper { display: flex; flex-wrap: wrap; gap: 30px; }
.dgbc_blog_carousel .dgbc_post_item { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); background: #ffffee; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
@media (max-width: 767px) { .dgbc_blog_carousel .dgbc_post_item { flex-basis: 100%; max-width: 100%; } }
.dgbc_blog_carousel .dg-post-thumb img { display: block; width: 100%; height: auto; }
.dgbc_blog_carousel .content-wrapper { padding: 60px; }
@media (max-width: 767px) { .dgbc_blog_carousel .content-wrapper { padding: 40px; } }
.dgbc_blog_carousel .dg_bc_title { margin: 0 0 15px; padding: 0; font-size: 22px; line-height: 1.3; color: #000; }
.dgbc_blog_carousel .dg_bc_title a, .dgbc_blog_carousel .post-content { color: #000; }
.dgbc_blog_carousel .dg_read_more_wrapper { margin-top: 44px; }
.dgbc_blog_carousel a.read-more { display: inline-block; font-size: 15px; color: #000; border: 2px solid #000; padding: 8px 22px; text-decoration: none; transition: background .2s, color .2s; }
.dgbc_blog_carousel a.read-more:hover { background: #000; color: #fff; }

/* ---- Header logo (SVG) ----
   The old theme hid the logo box (the image had been missing since 2022); show it again the Divi way. */
#main-header .logo_container { display: block; position: absolute !important; height: 100%; width: 100%; text-align: left; }
#logo { width: auto; }

/* ---- Booking: "Book Now" menu item and the Home hero button (links go through /booking, see _redirects) ---- */
#top-menu li.cu-menu-book a { color: #2ea3f2; }
.cu-book-wrapper { text-align: center; margin: 34px 0 10px; }
.cu-book-button { display: inline-block; padding: 13px 36px; border: 2px solid #fff; color: #fff !important; background: transparent;
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; transition: background .3s, color .3s; }
.cu-book-button:hover { background: #fff; color: #000 !important; }
@media (max-width: 767px) { .cu-book-button { padding: 11px 22px; font-size: 12px; letter-spacing: 2px; } }

/* ---- "Page not found" page: keep the title clear of the header ---- */
.error404 #main-content .container { padding-top: 60px; }

/* ---- Contact form message after sending ---- */
.et-pb-contact-message p { margin: 0 0 1em; }
