/* === Gift Gallery Grid Setup December 29, 2025 === */
.wp-block-columns.gift-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 columns desktop */
    column-gap: 10px; /* horizontal spacing desktop */
    row-gap: 36px;    /* vertical spacing */
}

/* Override default WordPress column widths */
.wp-block-columns.gift-gallery > .wp-block-column {
    width: auto !important;
    display: block; /* default for desktop */
}

/* Responsive breakpoints */

/* Tablet: 2-column balanced grid with larger horizontal spacing */
@media (max-width: 1024px) and (min-width: 769px) {
    .wp-block-columns.gift-gallery {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px; /* increased horizontal spacing on tablet */
    }

    /* Make column wrappers transparent so grid items flow evenly */
    .wp-block-columns.gift-gallery > .wp-block-column {
        display: contents;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .wp-block-columns.gift-gallery {
        grid-template-columns: 1fr;
        column-gap: 10px; /* horizontal spacing mobile */
    }

    /* revert wrapper display for proper stacking */
    .wp-block-columns.gift-gallery > .wp-block-column {
        display: block;
    }
}

/* Figure setup */
.wp-block-columns.gift-gallery figure {
    position: relative;
    display: block;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 8px; /* rounded corners */
    transition: transform 0.3s ease, z-index 0.3s ease;
}

/* Images fill figure */
.wp-block-columns.gift-gallery figure img {
    display: block;
    width: 100%;
    border-radius: 8px; /* rounded corners match figure */
    transition: transform 0.3s ease;
}

/* Hover scale effect */
.wp-block-columns.gift-gallery figure:hover {
    transform: scale(1.05); /* expand on hover */
    z-index: 2;
}




/* Accordion title stack */
.accordion-title {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

/* Store name */
.accordion-title .store-name {
  font-weight: 600;
  line-height: 1.2;
}

/* City, Province */
.accordion-title .store-location {
  font-size: 0.85em;
  color: #6b7280; /* soft neutral grey */
  letter-spacing: 0.02em;
}

/* Optional: slightly tighter on mobile */
@media (max-width: 600px) {
  .accordion-title .store-location {
    font-size: 0.8em;
  }
}


/* Remove hover effects from images */
.wp-block-column a {
  position: relative;
  display: block;
}

.wp-block-column a img {
  display: block;
  width: 100%;
}


January 14, 2026 
/* ============================================
   PUBLISHER HEADER STYLING
   ============================================ */

.catalogue-columns .publisher-header-columns {
  margin-bottom: 20px !important;
  gap: 10px !important;
}

.catalogue-columns .publisher-header-columns .wp-block-column {
  margin: 0 !important;
}

.catalogue-columns .publisher-header-columns .wp-block-column figure {
  margin: 0 !important;
}

.catalogue-columns .publisher-header-columns .wp-block-column h2 {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.catalogue-columns .publisher-header-columns img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Mobile responsive for publisher header */
@media (max-width: 768px) {
  .catalogue-columns .publisher-header-columns {
    gap: 15px !important;
  }
}


/* ============================================
   CATALOGUE IMAGE STYLING WITH HOVER OVERLAY
   ============================================ */

.catalogue-columns .catalogue-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.catalogue-columns .catalogue-image-link img {
  display: block;
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.catalogue-columns .catalogue-image-link:hover img {
  transform: scale(1.05);
}

/* Hover overlay */
.catalogue-columns .catalogue-image-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 8px;
  pointer-events: none;
}

.catalogue-columns .catalogue-image-link::after {
  content: 'OPEN AS PDF →';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
}

.catalogue-columns .catalogue-image-link:hover::before,
.catalogue-columns .catalogue-image-link:hover::after {
  opacity: 1;
}

/* Fallback for regular linked images */
.catalogue-columns a {
  position: relative;
  display: block;
}

.catalogue-columns a img,
.catalogue-columns .wp-block-image img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.catalogue-columns .wp-block-image {
  border-radius: 8px;
  overflow: hidden;
}


/* ============================================
   BUTTON CONTAINER STYLING
   ============================================ */

.catalogue-columns .wp-block-button {
  margin-top: 5px;
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
}

.catalogue-columns .wp-block-button:first-of-type {
  margin-top: 15px;
}


/* ============================================
   SHARED BUTTON STYLING (ALL BUTTONS)
   ============================================ */

.catalogue-columns .catalist-button .wp-block-button__link,
.catalogue-columns .bookmanager-button .wp-block-button__link,
.catalogue-columns .pdf-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 14px;
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px;
  border: 2px solid;
  transition: all 0.3s ease;
  font-weight: bold;
  width: auto;
  max-width: 90%;
  font-family: 'Lato', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.4;
  text-align: left !important;
}

.catalogue-columns .catalist-button .wp-block-button__link strong,
.catalogue-columns .bookmanager-button .wp-block-button__link strong,
.catalogue-columns .pdf-button .wp-block-button__link strong {
  color: white !important;
  text-decoration: none;
  font-family: 'Lato', sans-serif !important;
  font-size: 16px !important;
  font-weight: bold;
}

.catalogue-columns .catalist-button .wp-block-button__link img,
.catalogue-columns .bookmanager-button .wp-block-button__link img,
.catalogue-columns .pdf-button .wp-block-button__link img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin-right: 10px;
  flex-shrink: 0;
}


/* ============================================
   CATALIST BUTTON - ORANGE (#fe9100)
   ============================================ */

.catalogue-columns .catalist-button .wp-block-button__link {
  background-color: #fe9100 !important;
  border-color: #fe9100 !important;
}

.catalogue-columns .catalist-button .wp-block-button__link:hover {
  background-color: #ffd6a6 !important;
  color: #c76000 !important;
  border-color: #fe9100 !important;
  transform: scale(1.05);
}

.catalogue-columns .catalist-button .wp-block-button__link:hover strong {
  color: #c76000 !important;
}


/* ============================================
   BOOKMANAGER BUTTON - BLUE (#1880e6)
   ============================================ */

.catalogue-columns .bookmanager-button .wp-block-button__link {
  background-color: #1880e6 !important;
  border-color: #1880e6 !important;
}

.catalogue-columns .bookmanager-button .wp-block-button__link:hover {
  background-color: #b3d9f9 !important;
  color: #0d5aa8 !important;
  border-color: #1880e6 !important;
  transform: scale(1.05);
}

.catalogue-columns .bookmanager-button .wp-block-button__link:hover strong {
  color: #0d5aa8 !important;
}


/* ============================================
   PDF BUTTON - GREEN (#5eab71)
   ============================================ */

.catalogue-columns .pdf-button .wp-block-button__link {
  background-color: #5eab71 !important;
  border-color: #5eab71 !important;
}

.catalogue-columns .pdf-button .wp-block-button__link:hover {
  background-color: #c6e8cf !important;
  color: #3d7a4d !important;
  border-color: #5eab71 !important;
  transform: scale(1.05);
}

.catalogue-columns .pdf-button .wp-block-button__link:hover strong {
  color: #3d7a4d !important;
}


/* ============================================
   GENERAL BUTTON LINK STYLING
   ============================================ */

.catalogue-columns .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 12px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.catalogue-columns .wp-block-button__link img {
  width: 40px;
  height: auto;
  margin: 0;
  flex-shrink: 0;
}


/* ============================================
   ACCORDION STYLING
   ============================================ */

.catalogue-columns .wp-block-coblocks-accordion-item__title {
  font-size: 42px !important;
  font-weight: bold !important;
  color: white !important;
  font-family: inherit;
}

/* Feb 1st 2026 - Hover Gallery Overlay */
.hover-gallery-columns .wp-block-column figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.hover-gallery-columns .wp-block-column figure:hover {
  transform: scale(1.05);
}

.hover-gallery-columns .overlay-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px;
  pointer-events: none;
}

figure:hover .overlay-images {
  opacity: 1;
  pointer-events: auto;
}

.overlay-images a {
  width: 95%;
  display: block;
  transition: transform 0.2s ease;
}

.overlay-images a:hover {
  transform: scale(1.08);
}

.overlay-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

/* Make overlay images visible in WordPress editor */
.editor-styles-wrapper .overlay-images {
  position: relative !important;
  opacity: 1 !important;
  background: #f0f0f0 !important;
  margin-top: 10px !important;
}

Feb 2nd 

<!-- Add this CSS to your WordPress theme's Custom CSS or in a Custom HTML block -->

/* Mobile tap functionality */
.hover-gallery-columns figure {
  position: relative;
  cursor: pointer;
}

.hover-gallery-columns .overlay-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
  .hover-gallery-columns figure:hover .overlay-images {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Mobile tap - show overlay when active class is added */
.hover-gallery-columns figure.active .overlay-images {
  opacity: 1;
  pointer-events: auto;
}

/* Make overlay images clickable */
.hover-gallery-columns .overlay-images a {
  display: block;
  transition: transform 0.2s ease;
  margin: 0 auto;
}

.hover-gallery-columns .overlay-images a:hover {
  transform: scale(1.1);
}

.hover-gallery-columns .overlay-images img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

<!-- Add this CSS to fix image sizing in WordPress edit mode -->
<!-- This only affects the editor view, not your live site -->

/* Force proper sizing in edit mode */
.editor-styles-wrapper .hover-gallery-columns .wp-block-column,
.block-editor-block-list__layout .hover-gallery-columns .wp-block-column {
  flex-basis: 33.33% !important;
  max-width: 33.33% !important;
  flex-grow: 0 !important;
}

/* Constrain the figure and image in edit mode */
.editor-styles-wrapper .hover-gallery-columns figure,
.block-editor-block-list__layout .hover-gallery-columns figure {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  display: block !important;
}

.editor-styles-wrapper .hover-gallery-columns figure img,
.block-editor-block-list__layout .hover-gallery-columns figure img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* Force columns container to behave properly */
.editor-styles-wrapper .hover-gallery-columns,
.block-editor-block-list__layout .hover-gallery-columns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2em !important;
}

/* Hide overlay images completely in edit mode for cleaner look */
.editor-styles-wrapper .hover-gallery-columns .overlay-images,
.block-editor-block-list__layout .hover-gallery-columns .overlay-images {
  display: none !important;
}

/* Target the HTML block wrapper specifically */
.editor-styles-wrapper .wp-block-html,
.block-editor-block-list__layout .wp-block-html {
  max-width: 100% !important;
}

/* Only affects images with the hover-expand class */
.hover-expand a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hover-expand a:hover {
  transform: scale(1.1);
  z-index: 10;
  position: relative;
}

.hover-expand img {
  transition: transform 0.3s ease;
  display: block;
}

/* February 5th 2026 Buy Books Local Profile Image Hover Effect */

.buylocal-instagram-section .buylocal-profile-image {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.buylocal-instagram-section .buylocal-profile-image figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.buylocal-instagram-section .buylocal-profile-image a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.buylocal-instagram-section .buylocal-profile-image a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3b7c8f;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
  border-radius: 8px;
}

.buylocal-instagram-section .buylocal-profile-image img {
  transition: transform 0.4s ease;
  display: block;
  border-radius: 8px;
}

.buylocal-instagram-section .buylocal-profile-image:hover a::before {
  opacity: 0.35;
}

.buylocal-instagram-section .buylocal-profile-image:hover img {
  transform: scale(1.15);
}

.buylocal-instagram-section .buylocal-text-column p {
  margin-bottom: 0.2em;
}

.buylocal-instagram-section .buylocal-text-column p:first-child {
  margin-top: 0;
}

.buylocal-instagram-section .buylocal-text-column p:last-child {
  margin-bottom: 0;
}

FEB 11TH, 2026

/* Keep 3 columns on tablets for gift gallery */
@media (min-width: 600px) and (max-width: 1024px) {
  .gift-gallery.wp-block-columns {
    flex-wrap: nowrap !important;
  }
  
  .gift-gallery .wp-block-column {
    flex-basis: 33.33% !important;
    max-width: 33.33% !important;
  }
}