:root {
  --bg-cream: #ffffff;
  --dark-site: #ffffff;
  --mid-grey: #1a1a18;
  --accent-brown: #8b6f47;
  --muted-text: #666666;
  --form-border: #e0e0e0;
  --tracking-wide: 0.18em;
  --rule: #f0f0f0;
  --text: #1a1a18;
  --faint: #666666;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  background-color: var(--bg-cream);
  color: var(--mid-grey);
}

/* Fix navbar shift and gap during modal open */

body.modal-open, body.modal-open .navbar.fixed-top {
  padding-right: 0 !important;
}

h1, h2, h3, h4, .navbar-brand, .intro-text, .testimonial-quote, .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

/* Utils */

.py-section {
  padding: 100px 0;
}

.p-feature {
  padding: 80px 64px;
}

.tracking-widest {
  letter-spacing: var(--tracking-wide);
}

.bg-cream {
  background-color: #ffffff !important;
}

.bg-dark-site {
  background-color: #ffffff !important;
}

.text-cream {
  color: #1a1a18 !important;
}

.text-mid {
  color: #1a1a18 !important;
}

.accent-color {
  color: var(--accent-brown);
}

.body-text-muted {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Buttons & Inputs */

.btn, .form-control, .form-select {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.btn-outline-cream {
  border: 1px solid #1a1a18 !important;
  color: #1a1a18 !important;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wide);
}

.btn-outline-cream:hover {
  background-color: #1a1a18 !important;
  color: #ffffff !important;
}

.btn-outline-dark {
  border: 1px solid #1a1a18 !important;
  color: #1a1a18 !important;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wide);
}

.btn-outline-dark:hover {
  background-color: #1a1a18 !important;
  color: #ffffff !important;
}

.form-control, .form-select {
  border: 1px solid var(--form-border);
  background-color: transparent;
  padding: 12px 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-brown);
  background-color: transparent;
}

/* Navbar */

.navbar {
  background-color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, transform 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.navbar-brand {
  color: #1a1a18 !important;
  font-size: 1.5rem;
}

.nav-link {
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7) !important;
}

.nav-link:hover {
  color: #000000 !important;
}

.navbar-toggler {
  color: #1a1a18 !important;
}

.navbar-toggler span {
  color: #1a1a18 !important;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-slides, .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  display: none;
}

.eyebrow-hero {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.8) !important;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #ffffff !important;
}

.link-cream-border {
  color: #ffffff !important;
  text-decoration: none;
  border-bottom: 1px solid #ffffff !important;
  padding-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  border: 1px solid #ffffff !important;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dots .dot.active {
  background-color: #ffffff !important;
}

/* Intro */

.intro-text {
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.6;
}

/* Collections Card */

.collection-card {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  text-decoration: none;
  color: var(--bg-cream);
}

.collection-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.collection-card:hover .collection-img {
  transform: scale(1.04);
}

.collection-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  z-index: 2;
}

/* Collection Gradients */

.grad-landscapes {
  background: linear-gradient(135deg, #4a5d4e, #2a3a2e);
}

.grad-abstracts {
  background: linear-gradient(135deg, #7a5c42, #3d2b1f);
}

.grad-figurative {
  background: linear-gradient(135deg, #a08c7d, #5a4a3f);
}

.grad-west-cork {
  background: linear-gradient(135deg, #3a506b, #1c2541);
}

.grad-coastal {
  background: linear-gradient(135deg, #8ba891, #4a5d4e);
}

.grad-limited {
  background: linear-gradient(135deg, #4b3b4d, #2a1f2b);
}

/* Feature Sections */

.feature-img {
  min-height: 520px;
}

.grad-story {
  background: linear-gradient(to right, #3d2b1f, #d4bfa0);
}

.grad-studio {
  background: linear-gradient(to right, #c9a96e, #f5ede0);
}

.grad-journal {
  background: linear-gradient(to right, #1a2c1e, #7ab090);
}

/* Gallery Grid (A4 Logic) */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  grid-auto-flow: dense;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #eee;
  transition: opacity 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  opacity: 0.9;
}

.gallery-item.landscape {
  aspect-ratio: 61 / 51;
}

.gallery-item.portrait {
  aspect-ratio: 61 / 110;
}

@media (min-width: 768px) {
  .gallery-item.portrait {
    grid-row: span 2;
    aspect-ratio: 61 / 108;
  }
}

.gallery-item.landscape-double {
  aspect-ratio: 61 / 110;
}

@media (min-width: 768px) {
  .gallery-item.landscape-double {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 61 / 51;
  }
}

.gallery-item.square {
  aspect-ratio: 1 / 1;
}

.gallery-item.triple {
  aspect-ratio: 100 / 60;
}

@media (min-width: 768px) {
  .gallery-item.triple {
    grid-column: span 2;
    aspect-ratio: 100 / 45;
  }
}

@media (min-width: 1200px) {
  .gallery-item.triple {
    grid-column: span 3;
    aspect-ratio: 100 / 32;
  }
}

.gallery-img-wrapper {
  flex-grow: 1;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* Modal Styling */

.modal-content {
  background: transparent !important;
}

#modalImg {
  max-height: 80vh;
  object-fit: contain;
}

#galleryModal h3, .modal-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #ffffff !important;
}

/* Journal Styles */

.journal-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.journal-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  overflow: hidden;
}

.journal-card:hover .journal-img {
  transform: scale(1.02);
}

/* Testimonials */

.testimonial-quote {
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(245, 240, 234, 0.82);
  line-height: 1.5;
}

/* Footer */

footer {
}

.footer-logo {
  font-size: 1.4rem;
}

/* Global Overrides for Theme Change */

.border-white {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.text-white {
  color: #1a1a18 !important;
}

[style*="color: var(--bg-cream)"], [style*="color:var(--bg-cream)"] {
  color: #1a1a18 !important;
}

.breadcrumb-item a, .breadcrumb-item.active {
  color: #1a1a18 !important;
}

.breadcrumb-item + .breadcrumb-item {
  color: #1a1a18 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(0,0,0,0.3) !important;
}

.breadcrumb-item a span {
  color: #1a1a18 !important;
}

/* Animations */

.reveal, .reveal-left, .reveal-right {
  transition: all 1s ease-out;
}

/* Hide elements only when animations are initialized via JS */

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
}

body.js-enabled .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

body.js-enabled .reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* Show elements when they become active */

body.js-enabled .reveal.active, body.js-enabled .reveal-left.active, body.js-enabled .reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Mobile Adjustments */

@media (max-width: 991px) {
  .py-section {
    padding: 56px 0;
  }
}

@media (max-width: 991px) {
  .p-feature {
    padding: 56px 24px;
  }
}

.min-vh-50 {
  min-height: 50vh;
}

.carousel-image-item {
  width: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.carousel-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  pointer-events: none;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.carousel-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

@media (max-width: 991px) {
  .min-vh-50 {
    min-height: 350px;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-dots {
    padding: 2rem !important;
  }
}

/* Theme Overrides */

.bg-dark-site, .bg-dark, .bg-black {
  background-color: #ffffff !important;
}

.text-cream, .text-white, .text-light {
  color: #1a1a18 !important;
}

.border-white, .border-light {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.breadcrumb-item a, .breadcrumb-item.active {
  color: #1a1a18 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(0, 0, 0, 0.3) !important;
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

footer {
  background-color: #ffffff !important;
  color: #1a1a18 !important;
  border-top: 1px solid #f0f0f0;
}

footer a {
  color: #1a1a18 !important;
}

footer .text-opacity-50 {
  opacity: 0.7 !important;
}

.btn-outline-cream {
  border-color: #1a1a18 !important;
  color: #1a1a18 !important;
}

.btn-outline-cream:hover {
  background-color: #1a1a18 !important;
  color: #ffffff !important;
}

