/* =======================
   Base Styles
   ======================= */
body {
  margin: 0;
  font-family: "Raleway", san serif;
  color: #333;
  background: #fafafa;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =======================
   Header
   ======================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .logo span {
  font-family: 'Prata', serif;
  font-weight: normal;
  font-size: 1.6rem;
}

.logo-text {
  white-space: nowrap;
  font-family: 'Prata', serif;
  font-size: 1.6rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .logo img {
  height: 50px;
}

/* Desktop navigation */
.main-nav {
  display: flex;
}

.main-nav a {
  margin-left: 1.5rem;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  color: #333;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #0077cc;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* =======================
   Hero Section
   ======================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: white;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.hero-text h1 {
  font-family: 'Pristina', cursive;
  font-weight: normal;
  margin: 0;
  font-size: 4rem;
  line-height: 1.1; /* tighter spacing */
}

.hero-text p {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
}
/* =======================
   Responsive Hero Image
   ======================= */
@media (max-width: 768px) {
  .hero img {
    height: auto;         /* Let image take natural height */
    max-height: 50vh;     /* Optional: limit height on mobile */
    object-fit: contain;   /* Show full image */
  }

  .hero-text {
    bottom: 1rem;
    left: 1rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}


/* =======================
   Home Links Section
   ======================= */
.home-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.home-links a {
  padding: 0.7rem 1.5rem;
  background: #0077cc;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.home-links a:hover {
  background: #005fa3;
  transform: translateY(-2px);
}
.home-links a {
  touch-action: manipulation;
}

/* =======================
   Responsive Home Links
   ======================= */

/* Tablets */
@media (max-width: 900px) {
  .home-links {
    gap: 1.5rem;
  }

  .home-links a {
    padding: 0.6rem 1.3rem;
    font-size: 0.95rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .home-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 1rem;
  }

  .home-links a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}


/* =======================
   Intro Section
   ======================= */
.intro {
  max-width: 800px;
  margin: 2rem auto 4rem;
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 0 1rem;
}
/* =======================
   New Work
   ======================= */
.new-work {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.new-work h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.new-work-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.work-card {
  position: relative;
  display: block;
  width: 300px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s;
}

.work-card img {
  width: 100%;
  height: 220px;        /* 👈 controls visible height */
  object-fit: cover;   /* 👈 crops instead of squishing */
  display: block;
  transition: transform 0.3s;
}

/* Overlay */
.work-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-card:hover .overlay {
  opacity: 1;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card p {
  margin-top: 0.5rem;
  font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .new-work-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .work-card {
    width: 90%;
    max-width: 320px;
  }
}


/* =======================
   Footer
   ======================= */

.site-footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #f1f1f1;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #555;
}

.social-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s, opacity 0.2s;
}

.social-links a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

/* =======================
   Mobile Navigation
   ======================= */
@media (max-width: 1024px) {

  .site-header {
    flex-wrap: wrap;
  }

  /* Show hamburger */
  .nav-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
  }

  /* Hide nav by default */
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 1rem;
    gap: 1rem;
    transition: max-height 0.3s ease-out;
  }

  /* Show nav when toggled */
  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    margin: 0;
    padding: 0.75rem 0;
    text-align: center;
  }

}


  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}
/* Fade-in animation */

.fade-in {
  animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   ABOUT PAGE
========================= */
.about-page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Raleway', sans-serif;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Heading & text */
.about-text h1 {
  font-family: 'Pristina', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Images below text */
.about-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.about-images img {
  flex: 1 1 45%;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-images img {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-text h1 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}




/* Artwork page layout */

.artwork-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.artwork-page h1 {
  font-family: "Pristina", cursive;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.artwork-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* image | details */
  grid-template-rows: auto auto;   /* main row + extra info row */
  gap: 2rem;
}

.artwork-image {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.artwork-details {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.artwork-extra-info {
  grid-column: 1 / 3; /* span full width under both columns */
  grid-row: 2 / 3;
  margin-top: 2rem;   /* optional spacing */
}
.artwork-details a { 
  color: #1a5fb4;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.artwork-details a:hover {
  text-decoration: none;
}

/* Stack on small screens */
@media (max-width: 768px) {
  .artwork-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .artwork-image,
  .artwork-details,
  .artwork-extra-info {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}


/* purchase options on individual art pages */

.purchase-options {
  margin: 2rem 0;
}

.purchase-options .option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.purchase-options .option:hover {
  background: #f5f5f5;
}

.purchase-options input[type="radio"] {
  accent-color: #333;
}

.purchase-options .price {
  font-weight: bold;
}
/* buy button on individual art pages */
.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  background: #333;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.button:hover {
  background: #000;
}
.quantity {
  margin: 1.5rem 0;
}

.quantity input {
  width: 3rem;
  padding: 0.3rem;
  margin-left: 0.5rem;
}

/* --------------------------
   Buttons: unify style
-------------------------- */
.artwork-details .button {
  display: inline-block;       /* makes a-tags behave like buttons */
  padding: 0.6em 1.2em;       /* vertical | horizontal */
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;      /* remove underline on a-tags */
  border: none;               /* remove default button border */
  border-radius: 4px;         /* rounded corners */
  background-color: #333;     /* dark background */
  color: #fff;                /* white text */
  cursor: pointer;
  transition: background 0.3s;

  line-height: 1;             /* ensures same height */
  box-sizing: border-box;     /* padding included in size */
  vertical-align: middle;     /* aligns buttons if side by side */
  font-family: inherit;       /* match your page font */
  min-width: 120px;           /* optional: make them uniform width */
}

.artwork-details .button:hover {
  background-color: #555;     /* subtle hover effect */
}

.artwork-details .button:focus {
  outline: 2px solid #666;   /* accessibility */
  outline-offset: 2px;
}

/* Optional: separate widths for Enquire vs Add to Cart */
.artwork-details .button.enquire { min-width: 110px; }
.artwork-details .button.add-to-cart { min-width: 110px; }

.option.sold {
  opacity: 0.5;
  pointer-events: none;
}

.option.sold .price {
  text-decoration: line-through;
}

.sold-text {
  color: #c00000;
}

/* --------------------------
   Cart items
-------------------------- */
.cart-item {
  display: flex;
  align-items: flex-start; /* align thumbnail + info at top */
  margin-bottom: 1em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1em;
  gap: 1em; /* space between thumbnail and info */
}

.cart-item-thumb {
  flex: 0 0 80px; /* fixed width for thumbnail */
  width: 80px;
}

.cart-item-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1; /* take remaining space */
  display: flex;
  flex-direction: column;
  gap: 0.5em; /* spacing between lines */
}

.cart-item-text p {
  margin: 0;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.cart-item-controls label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin: 0;
}

.cart-item-controls input[type="number"] {
  width: 50px; /* space for ~3 digits */
  padding: 0.25em;
  font-size: 1rem;
}

.cart-item-controls .remove {
  padding: 0.3em 0.6em;
  font-size: 0.9rem;
}

.item-total {
  margin-top: 0.5em;
}

#cart-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #eef7ef;
  border: 1px solid #b6e0c2;
  border-radius: 6px;
  font-size: 0.95rem;
}

#cart-message a {
  margin-left: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

#cart-message a:hover {
  text-decoration: underline;
}

#cart-message {
  transition: opacity 0.4s ease;
}

/* -------------------------
   CONTACT PAGE STYLES
------------------------- */

.contact-page {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
}

.contact-page h1 {
  font-family: 'Pristina', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-page p {
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .newsletter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  margin-top: 0.5rem;
}

.contact-form .button {
  background-color: #333;
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .button:hover {
  background-color: #555;
}

.contact-form .form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

/* --------------------------
   Newsletter box
-------------------------- */
.contact-form .newsletter-box {
  border: 2px solid #333;
  border-radius: 10px;
  background-color: #fafafa;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form .newsletter-box label {
  margin: 0;
  font-weight: normal;
  font-size: 1rem;
  line-height: 1.4;
  align-items: center;
}

.contact-form .newsletter-box input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
  accent-color: #333;
}


/* Thank You / Success Page */

.thank-you-page {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2.5rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.thank-you-image {
  flex: 0 0 260px;
}

.thank-you-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.thank-you-message {
  flex: 1;
  min-width: 260px;
}

.thank-you-message h1 {
  font-family: "Pristina", cursive;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.thank-you-message p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .thank-you-page {
    text-align: center;
  }

  .thank-you-image {
    margin: 0 auto;
  }
}
/* =========================
   PHOTOGRAPHY GALLERY
========================= */

/* Main page container */
.photography-page {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

/* Intro header */
.photography-page h1 {
  font-family: 'Pristina', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.photography-page p {
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Fade in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print info section */
.print-info h2 {
  font-family: 'Pristina', cursive;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.print-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.print-info li {
  margin-bottom: 0.25rem;
}

.print-notes {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

/* =========================
   PHOTOGRAPHY GRID
========================= */
.photography-grid-container {
  position: relative; /* modal will be positioned relative to this container */
}

.photography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 0.4rem;
  margin: 1rem 0;
}

.photo-item {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.photo-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

.photo-item .buy-print {
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.photo-item .buy-print:hover {
  background-color: #555;
  transform: scale(1.05);
}
/* =========================
   PHOTO MODAL / LIGHTBOX (NO OVERLAY)
========================= */

.photo-modal {
  display: none;
  position: absolute; /* now relative to .photography-grid-container */
  z-index: 1000;
}

.photo-modal-content {
  background: #111;
  padding: 2rem 2rem 1.2rem;
  border-radius: 12px;
  max-width: 90%;
  width: 400px; /* default small screens */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: left 0.2s ease, top 0.2s ease;
}

.photo-modal img {
  max-height: 70vh;
  width: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.photo-modal-caption {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.modal-buy-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-buy-buttons .buy-print {
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.modal-buy-buttons .buy-print:hover {
  background-color: #555;
  transform: scale(1.05);
}

.photo-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.photo-modal-close:hover {
  color: #ddd;
}

.photo-modal-prev,
.photo-modal-next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease, left 0.2s ease, right 0.2s ease;
  transform: translateY(-50%);
}

.photo-modal-prev {
  left: 0rem; /* moves arrow slightly outside left */
}

.photo-modal-next {
  right: 0.5rem; /* moves arrow slightly outside right */
}

.photo-modal-prev:hover,
.photo-modal-next:hover {
  color: #ddd;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
========================= */
@media (min-width: 1200px) {
  .photo-modal-content {
    width: 600px; /* larger modal on wide screens */
  }
}

@media (max-width: 900px) {
  .photography-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .photography-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .photo-modal img {
    max-height: 80vh;
  }

  .photo-modal-close {
    font-size: 1.5rem;
  }

  .photo-modal-prev,
  .photo-modal-next {
    font-size: 1.5rem;
  }

  .photo-modal-content {
    width: 90%;
    left: 5% !important; /* ensures it doesn’t go off-screen on small devices */
  }
}

/* =========================
   Gallery page styles
========================= */
.art-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Raleway', sans-serif;
}

/* Body font and margins */
body {
  font-family: 'Raleway', sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 1rem auto;
  padding: 0 1rem;
  max-width: 1200px;
}

/* Section headings */
.gallery-section {
  margin: 3rem 0;
}

h1 {
  font-family: 'Pristina', cursive;
  }

.gallery-section h2 {
  font-family: 'Pristina', cursive;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

/* Grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

/* Individual gallery items */
.gallery-item {
  position: relative; /* needed for caption & tooltip */
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Caption overlay */
.gallery-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Hover title tooltip */
.gallery-item[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: 4px;
  pointer-events: none;
  opacity: 1;
  z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .gallery-section h2 {
    font-size: 1.5rem;
  }
  .gallery-caption {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
  .gallery-item[title]:hover::after {
    font-size: 0.7rem;
  }
}

/* Default gallery item size for most artworks */
.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio (height = 75% of width) */
  border-radius: 8px;
}

/* Images fill the container, cropped if necessary */
.gallery-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* key property for cropping */
  transition: transform 0.3s ease;
}

/* Hover zoom */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Portraits: keep natural ratio */
.gallery-item.portrait-item {
  padding-top: auto; /* allow natural height */
  height: auto;
}

.gallery-item.portrait-item img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =======================
   Shop Page
   ======================= */

/* =========================
   Shop Page Layout
   ========================= */

.shop-grid {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Shop item container */
.shop-item {
  position: relative;
  display: block;
  background: #f7f7f7;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
}

/* THIS is the important bit — no cropping */
.shop-item img {
  width: 100%;
  height: 260px;
  object-fit: contain;   /* keep whole image */
  background: #fff;
  display: block;
  transition: transform 0.3s ease;
}

.shop-item:hover img {
  transform: scale(1.03);
}

/* Caption overlay */
.shop-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* TEXT WRAP FIX */
.shop-caption h2,
.shop-caption p {
  margin: 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.shop-caption h2 {
  font-family: 'Pristina', cursive;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.shop-caption p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
}

/* Show caption on hover */
.shop-item:hover .shop-caption {
  opacity: 1;
}

/* =========================
   Shop tile styling
   ========================= */

.shop-item {
  position: relative;
  display: block;
  background: #eaeaea;   /* darker than page background */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  padding: 0.5rem;
}

/* Grey out image when sold */
.shop-item.sold-out img {
  filter: grayscale(90%) brightness(0.9);
}

/* Ribbon */
.sold-ribbon {
  position: absolute;
  top: 12px;
  left: -40px;
  background: #b30000;
  color: #fff;
  padding: 0.4rem 3rem;
  font-weight: bold;
  transform: rotate(-35deg);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  z-index: 2;
}
/* =========================
   card page styling
   ========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-item {
  background: #f7f7f7;
  padding: 1rem;
  text-align: center;
  border-radius: 6px;
}

.product-item img {
  max-height: 260px;
  width: auto;
  margin-bottom: 1rem;
}

.product-item input {
  width: 60px;
  margin: 0.5rem 0;
}

.price {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
/* 4:3 image crop for product items (cards & postcards) */
.product-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;   /* matches your other rounded corners */
  display: block;
}

/* ------------------------
   Shop Item Page Layout
------------------------- */
.shop-item-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  background-color: #f7f7f7; /* slightly different from body */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.shop-item-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.shop-item-image {
  flex: 1 1 350px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  padding: 0.5rem;
}

.shop-item-image img {
  width: 100%;
  height: auto; /* maintain aspect ratio */
  display: block;
  border-radius: 12px;
}

.sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(220, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  pointer-events: none; /* allow clicks through */
  border-radius: 12px;
}

.shop-item-info {
  flex: 1 1 350px;
  min-width: 280px;
}

.shop-item-info p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.shop-item-info ul {
  list-style: disc inside;
  margin: 0.5rem 0 1rem 0;
  padding-left: 0;
}

.shop-item-info .button {
  display: inline-block;
  margin-top: 1rem;
  margin-right: 1rem;
  padding: 0.8rem 1.4rem;
  background-color: #004466;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.shop-item-info .button:hover {
  background-color: #006699;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .shop-item-detail {
    flex-direction: column;
  }

  .shop-item-image,
  .shop-item-info {
    flex: 1 1 100%;
  }
}

/* ------------------------
   Corner Ribbon for Sold Out
------------------------- */
.ribbon {
  width: 150px;
  height: 150px;
  overflow: hidden;
  position: absolute;
  top: -10px;
  right: -10px;
  pointer-events: none;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 225px;
  padding: 10px 0;
  background-color: #dc0000;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  top: 25px;
  right: -55px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  border-radius: 3px;
}

.cart-notice {
  background-color: #fff4e5; /* soft cream/orange to catch attention */
  border-left: 4px solid #ff9900; /* “ribbon” effect */
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-weight: 500;
  border-radius: 4px;
  color: #333;
}

.cart-notice a {
  color: #0077cc;
  text-decoration: underline;
}

.cart-notice a:hover {
  color: #005599;
}

/* ===== Cart Shipping Options Styling ===== */
.shipping-options {
  border: 1px solid #ccc;
  padding: 16px;
  margin: 20px 0;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.shipping-options p {
  margin: 10px 0;
  font-size: 0.95rem;
}

.shipping-options select,
.shipping-options input[type="checkbox"] {
  margin-left: 8px;
  cursor: pointer;
}

.shipping-options em {
  display: block;
  margin-top: 10px;
  font-style: italic;
  color: #555;
}

