:root {
  --bg: #d8d8cf;
  --fg: #191919;
  --accent: #1f1f1f;
  --muted: #6a6a63;
  --font-display: "DM Serif Display", serif;
  --font-body: "EB Garamond", serif;
  --max-width: 1500px;
}

h1 {
  font-weight: 100;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 24px 36px;
  background: rgba(216, 216, 207, 0.85);
  backdrop-filter: blur(8px);
}

/* Hero header styling - transparent overlay with white text */
body.has-hero .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  z-index: 100;
}

body.has-hero .site-header .site-logo {
  color: white;
}

body.has-hero .site-header .nav-link {
  color: white;
}

body.has-hero .site-header .hamburger__line {
  background: white;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 100;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 150ms ease;
}

.nav-link:hover::after,
.nav-link-active::after {
  opacity: 1;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger__line:not(:last-child) {
  margin-bottom: 4px;
}

/* Hamburger animation when active */
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.9fr);
  gap: 48px;
  padding: 0 36px 120px;
  align-items: center;
  min-height: 100vh;
}

.hero__image {
  position: relative;
  min-height: 620px;
}

.hero__image-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top;
}

.hero__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  color: #f6f6f2;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 70%);
  padding: 160px 36px 80px;
  gap: 32px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  max-width: 760px;
  margin: 0;
}

.hero__cta {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid currentColor;
  padding: 12px 36px;
}

.hero__series {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.8vw, 72px);
}

.hero__list li {
  display: block;
}

.home-work-link {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.home-work-link:hover {
  border-bottom-color: currentColor;
}

.hero__signature {
  font-family: var(--font-display);
  font-size: 28px;
}

.home-intro {
  padding: 96px 36px;
}

.home-intro__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 22px;
  line-height: 1.7;
}

.home-features {
  padding: 0 36px 160px;
}

.home-features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 120px;
}

.home-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 72px;
  align-items: center;
}

.home-feature__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-feature__eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-feature__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 48px);
  margin: 0;
}

.home-feature__copy {
  font-size: 20px;
  margin: 0;
}

.home-feature__link {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid currentColor;
  padding: 7px;
  align-self: flex-start;
}

.home-feature__image {
  padding-bottom: 90%;
  background-size: cover;
  background-position: center;
}

.home-series {
  padding: 160px 36px 120px;
}

.home-series__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.home-series__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 72px);
  text-align: center;
}

.home-series__signature {
  font-family: var(--font-display);
  font-size: 28px;
}

.page-hero {
  padding: 144px 36px 72px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
}

.work-list {
  position: relative;
  padding-top: 7vh;
  overflow: hidden;
  --work-bg-opacity: 0;
  --work-bg-tint: 1;
  --work-bg-scale: 1.08;
}

.work-list::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--work-background-image, none);
  background-size: cover;
  background-position: center;
  opacity: var(--work-bg-opacity, 0);
  transform: scale(var(--work-bg-scale, 1));
  transition: opacity 420ms ease, transform 520ms ease;
  z-index: 0;
}

.work-list::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(216, 216, 207, 0.88);
  opacity: var(--work-bg-tint, 1);
  transition: opacity 380ms ease;
  z-index: 0;
}

.work-list__inner {
  position: relative;
  z-index: 1;
  max-width: 825px;
  margin: 0 auto;
  display: flex;
  min-height: 60vh;
  align-items: center;
  justify-content: center;
}

.work-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vh, 48px);
  text-align: center;
  width: 100%;
  align-items: center;
}



.work-item__link {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  display: inline-block;
  position: relative;
  padding: 12px 18px;
  color: var(--fg);
  transition: color 200ms ease, letter-spacing 200ms ease;
  line-height: 1.14;
}

.work-item__link:hover,
.work-item__link:focus-visible {
  color: #f6f6f2;
  letter-spacing: 0.035em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.work-item__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 8px;
}

.work-item__headline {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .work-list {
    padding: clamp(96px, 16vh, 160px) 24px clamp(120px, 20vh, 200px);
  }

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

  .work-item__link {
    font-size: clamp(32px, 10vw, 56px);
  }
}

@media (max-width: 600px) {
  .work-list {
    padding: 96px 20px 140px;
  }

  .work-item__link {
    font-size: clamp(28px, 12vw, 48px);
  }
}

.gallery__hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0 36px 120px;
  color: #f6f6f2;
}

.gallery__hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 24px;
}

.gallery__story {
  padding: 72px 36px;
}

.gallery__story-inner {
  max-width: 720px;
  margin: 0 auto;
  font-size: 20px;
}

.gallery__images {
  padding: 0 36px 144px;
}

.gallery__images-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  columns: 3;
  column-gap: 24px;
  column-fill: balance;
}

.gallery-image {
  break-inside: avoid;
  margin-bottom: 24px;
  display: inline-block;
  width: 100%;
}
.gallery__pagination {
  max-width: var(--max-width);
  margin: 0 auto 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  gap: 2rem;
}

.gallery__pagination-link {
  font-family: "Marcellus", serif;
  font-size: 33px;
  font-weight: 400;
  font-style: normal;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery__pagination-link:hover {
  color: var(--muted);
}

.gallery__pagination-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 12px;
}

.gallery__pagination-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.gallery__pagination-link:first-child {
  justify-content: flex-start;
}

.gallery__pagination-link:last-child {
  justify-content: flex-end;
}

.gallery__pagination-placeholder {
  flex: 1;
  min-width: 0;
}

.gallery-image {
  position: relative;
  cursor: pointer;
  transition: all 300ms ease;
  overflow: hidden;
  background: #f5f5f5;
  break-inside: avoid;
  margin-bottom: 24px;
  display: inline-block;
  width: 100%;
}

.gallery-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  position: relative;
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  transition: all 300ms ease;
}

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

.gallery-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-image:hover::before {
  opacity: 1;
}

.gallery-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px 16px 16px;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 300ms ease;
  z-index: 2;
}

.gallery-image:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Loading state for images */
.gallery-image img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-image img[src] {
  animation: none;
  background: none;
}

.about__hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 144px 36px 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about__hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  margin: 0;
}

.about__hero-body {
  font-size: 18px;
  line-height: 1.7;
}

.about__hero-image img {
  width: 100%;
}

.about__contact {
  background: rgba(0, 0, 0, 0.08);
  padding: 96px 36px;
}

.about__contact {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 72px;
  align-items: center;
}

.about__contact-text {
  max-width: 540px;
}

.about__contact-image img {
  margin-top: 32px;
}

.about__contact-text h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 16px;
}

.contact {
  padding: 144px 36px;
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 72px;
  align-items: start;
}

.contact__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact__header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
}

.contact__header p {
  margin-bottom: 24px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__label span {
  font-size: 0.75em;
  color: var(--muted);
}

.contact__field-row {
  display: flex;
  gap: 16px;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.contact__submit {
  align-self: flex-start;
  padding: 12px 32px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid currentColor;
  background: transparent;
}

.contact__hero img {
  width: 100%;
  object-fit: cover;
}

.inline-form {
  display: grid;
  gap: 16px;
}

.inline-form input,
.inline-form textarea,
.inline-form button {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.inline-form button {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
}

.site-footer {
  padding: 72px 36px 120px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.site-footer__link {
  display: inline-block;
  margin: 0 8px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


@media (max-width: 768px) {
  .hero__inner {
    padding: 0 20px 60px;
    grid-template-columns: 1fr;
    min-height: 100vh;
    gap: 24px;
    align-items: center;
  }

  .hero__series {
    align-items: center;
    text-align: center;
    order: 2;
  }

  .hero__image {
    order: 1;
    min-height: 50vh;
    max-height: 60vh;
    position: relative;
  }

  .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 40px;
    gap: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 70%);
    z-index: 1;
  }

  .hero__headline {
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1.2;
  }

  .hero__list {
    font-size: clamp(24px, 6vw, 40px);
    gap: 16px;
  }

  .home-features__inner {
    gap: 48px;
  }

  .home-feature {
    gap: 24px;
  }

  .home-feature__image {
    padding-bottom: 60%;
  }

  .hero {
    padding-top: 0;
  }

  .intro__inner {
    padding: 48px 20px;
  }

  .intro__content {
    grid-template-columns: 1fr;
  }

  .contact__field-row {
    flex-direction: column;
  }

  .site-header {
    padding: 12px 20px;
  }

  /* Hero header mobile styling */
  body.has-hero .site-header {
    padding: 12px 20px;
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(216, 216, 207, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    padding: 2rem;
    box-sizing: border-box;
  }

  .site-nav[aria-expanded="true"] {
    transform: translateX(0);
  }

  .site-nav .nav-link {
    font-size: 2rem;
    font-weight: 500;
    color: var(--fg);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    display: block;
    width: 100%;
    max-width: 300px;
  }

  .site-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .gallery__hero {
    padding: 0 20px 60px;
    min-height: 100vh;
  }

  .gallery__hero-content {
    padding: 40px 0;
  }

  .gallery__hero h1 {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 16px;
  }

  .gallery__pagination {
    padding: 0 20px;
    gap: 1rem;
  }

  .gallery__pagination-link {
    font-size: 30px;
  }

  .gallery__pagination-icon {
    width: 20px;
    height: 20px;
    margin: 0 10px;
  }

  .home-feature {
    gap: 32px;
  }

  .home-series {
    padding: 80px 20px 60px;
  }
}

@media (max-width: 480px) {
  .hero__inner {
    padding: 0 16px 40px;
    gap: 16px;
  }

  .hero__image {
    min-height: 40vh;
    max-height: 50vh;
    position: relative;
  }

  .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 16px 24px;
    gap: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 70%);
    z-index: 1;
  }

  .hero__headline {
    font-size: clamp(24px, 10vw, 36px);
  }

  .hero__list {
    font-size: clamp(20px, 8vw, 32px);
    gap: 12px;
  }

  .gallery__hero {
    padding: 0 16px 40px;
  }

  .gallery__hero-content {
    padding: 24px 0;
  }

  .gallery__hero h1 {
    font-size: clamp(24px, 10vw, 36px);
  }

  .gallery__pagination {
    padding: 0 16px;
    gap: 0.5rem;
  }

  .gallery__pagination-link {
    font-size: 26px;
  }

  .gallery__pagination-icon {
    width: 18px;
    height: 18px;
    margin: 0 8px;
  }

  .site-header {
    padding: 8px 16px;
  }

  /* Hero header small mobile styling */
  body.has-hero .site-header {
    padding: 8px 16px;
  }

  .site-nav {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .site-nav .nav-link {
    font-size: 1.75rem;
    padding: 0.75rem 1.5rem;
    max-width: 250px;
  }

  .about__hero {
    padding: 120px 24px 96px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__hero-text {
    order: 2;
  }

  .about__hero-image {
    order: 1;
  }

  .gallery__images-grid {
    columns: 2;
    column-gap: 16px;
  }

  .gallery-image {
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .gallery__images-grid {
    columns: 1;
    column-gap: 12px;
  }

  .gallery-image {
    margin-bottom: 12px;
  }
}

/* PhotoSwipe Custom Styles */
.pswp {
  --pswp-bg: rgba(0, 0, 0, 0.95);
  --pswp-placeholder-bg: #222;
  --pswp-ui-element-color: #fff;
  --pswp-ui-element-color-secondary: rgba(255, 255, 255, 0.7);
  --pswp-ui-element-color-disabled: rgba(255, 255, 255, 0.3);
  --pswp-ui-element-bg: rgba(0, 0, 0, 0.5);
  --pswp-ui-element-border-radius: 4px;
  --pswp-video-placeholder-bg: #000;
}

.pswp__button {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 200ms ease;
}

.pswp__button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.pswp__button--close {
  background: rgba(0, 0, 0, 0.5);
}

.pswp__button--close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pswp__counter {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.pswp__caption {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 24px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

/* Gallery Styling Options */
/* Gallery Layout Styles */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  /* Debug: temporary border to see container */
  border: 2px solid red;
}

/* Ensure masonry images flow properly */
.gallery-masonry .gallery-image {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.gallery-masonry .gallery-image img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
}

.gallery-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

/* Tile Size Options */
.gallery-tile-small .gallery-image img {
  max-height: 200px;
  object-fit: cover;
}

.gallery-tile-medium .gallery-image img {
  max-height: 400px;
  object-fit: cover;
}

.gallery-tile-large .gallery-image img {
  max-height: 600px;
  object-fit: cover;
}

/* Column Count Options */
.gallery-cols-1 {
  columns: 1 !important;
  grid-template-columns: 1fr !important;
}

.gallery-cols-2 {
  columns: 2 !important;
  grid-template-columns: repeat(2, 1fr) !important;
}

.gallery-cols-3 {
  columns: 3 !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.gallery-cols-4 {
  columns: 4 !important;
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Masonry-specific column overrides */
.gallery-masonry.gallery-cols-1 {
  grid-template-columns: 1fr !important;
}

.gallery-masonry.gallery-cols-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.gallery-masonry.gallery-cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.gallery-masonry.gallery-cols-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Responsive adjustments for different gallery styles */
@media (max-width: 1200px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .gallery-cols-4 {
    columns: 2 !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Masonry responsive overrides */
  .gallery-masonry.gallery-cols-3,
  .gallery-masonry.gallery-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gallery-cols-2,
  .gallery-cols-3,
  .gallery-cols-4 {
    columns: 1 !important;
    grid-template-columns: 1fr !important;
  }
  
  /* Masonry mobile overrides */
  .gallery-masonry.gallery-cols-2,
  .gallery-masonry.gallery-cols-3,
  .gallery-masonry.gallery-cols-4 {
    grid-template-columns: 1fr !important;
  }
  
  .gallery-tile-large .gallery-image img {
    max-height: 400px;
  }
  
  .gallery-tile-medium .gallery-image img {
    max-height: 300px;
  }
}
