/** Shopify CDN: Minification failed

Line 799:0 Unexpected "}"

**/
/* Gallery Portfolio Component */
.gallery-portfolio {
  /* Padding is now controlled by section settings via section-{id}-padding class */
}

.gallery-portfolio__container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media screen and (min-width: 750px) {
  .gallery-portfolio__container {
    padding: 0 5rem;
  }
}

/* Header */
.gallery-portfolio__header {
  text-align: center;
  margin-bottom: 4rem;
}

@media screen and (min-width: 750px) {
  .gallery-portfolio__header {
    margin-bottom: 6rem;
  }
}

.gallery-portfolio__subtitle {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: rgb(var(--color-base-accent-1));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body-family);
}

@media screen and (min-width: 750px) {
  .gallery-portfolio__subtitle {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}

.gallery-portfolio__heading {
  margin: 0;
  font-size: calc(var(--font-heading-scale) * 3rem);
  font-weight: var(--font-heading-weight);
  font-family: var(--font-heading-family);
  color: rgb(var(--color-base-text));
  line-height: 1.2;
}

@media screen and (min-width: 750px) {
  .gallery-portfolio__heading {
    font-size: calc(var(--font-heading-scale) * 4.5rem);
  }
}

/* Grid */
.gallery-portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-mobile-vertical-spacing);
}

@media screen and (min-width: 750px) {
  .gallery-portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-desktop-vertical-spacing);
  }
}

@media screen and (min-width: 990px) {
  .gallery-portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-desktop-horizontal-spacing);
  }
}

/* Grid Items */
.gallery-portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--media-radius);
  aspect-ratio: 1 / 1;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  /* Enhanced touch target for mobile */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.gallery-portfolio__image-wrapper {
  width: 100%;
  height: 100%;
  display: block;
}



/* Images */
.gallery-portfolio__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  will-change: transform;
  /* Prevent image selection on touch devices */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.gallery-portfolio__item:hover .gallery-portfolio__image {
  transform: scale(1.05);
}

/* Overlay */
.gallery-portfolio__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.gallery-portfolio__item:hover .gallery-portfolio__overlay,
.gallery-portfolio__item:focus .gallery-portfolio__overlay {
  opacity: 1;
}

/* On touch devices, show overlay on tap/touch */
@media (hover: none) and (pointer: coarse) {
  .gallery-portfolio__overlay {
    opacity: 0.8;
  }
  
  .gallery-portfolio__item:active .gallery-portfolio__overlay {
    opacity: 1;
  }
}

.gallery-portfolio__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: var(--font-heading-weight);
  font-family: var(--font-heading-family);
  color: white;
  line-height: 1.3;
  text-align: left;
}

@media screen and (min-width: 750px) {
  .gallery-portfolio__title {
    font-size: 2rem;
  }
}

.gallery-portfolio__image--placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: rgb(var(--color-base-background-2));
  border: 1px solid rgba(var(--color-base-text), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  /* Prevent image selection on touch devices */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.gallery-portfolio__image--placeholder svg {
  width: 100%;
  height: 100%;
  opacity: 0.3;
  fill: currentColor;
  color: rgb(var(--color-base-text));
  object-fit: cover;
}

/* Load More Button */
.gallery-portfolio__load-more-container {
  text-align: center;
  margin-top: 4rem;
}

@media screen and (min-width: 750px) {
  .gallery-portfolio__load-more-container {
    margin-top: 6rem;
  }
}

.gallery-portfolio__load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  background: rgb(var(--color-base-accent-1));
  color: rgb(var(--color-base-background-1));
  border: 2px solid rgb(var(--color-base-accent-1));
  border-radius: var(--buttons-radius);
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.gallery-portfolio__load-more-btn:hover,
.gallery-portfolio__load-more-btn:focus {
  background: transparent;
  color: rgb(var(--color-base-accent-1));
  transform: translateY(-2px);
  outline: none;
}

.gallery-portfolio__load-more-btn:active {
  transform: translateY(0);
}

.gallery-portfolio__load-more-text {
  display: block;
  font-size: 1.6rem;
  margin-top: 0.35rem;
}

.gallery-portfolio__load-more-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.gallery-portfolio__load-more-btn:hover .gallery-portfolio__load-more-icon,
.gallery-portfolio__load-more-btn:focus .gallery-portfolio__load-more-icon {
  transform: rotate(90deg);
}

/* Hidden gallery items */
.gallery-portfolio__item--hidden {
  display: none;
}

/* Modal Styles */
.gallery-portfolio__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background-color: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* Ensure modal is not selectable */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.gallery-portfolio__modal--active {
  opacity: 1;
  visibility: visible;
}

/* Prevent transitions during modal close to avoid flickering */
.gallery-portfolio__modal:not(.gallery-portfolio__modal--active) .swiper-slide {
  transition: none !important;
  transform: none !important;
}

.gallery-portfolio__modal:not(.gallery-portfolio__modal--active) .swiper-wrapper {
  transition: none !important;
  transform: none !important;
}

.gallery-portfolio__modal:not(.gallery-portfolio__modal--active) .swiper-container {
  transition: none !important;
}

/* Force all non-active slides to be hidden during close */
.gallery-portfolio__modal:not(.gallery-portfolio__modal--active) .swiper-slide:not(.swiper-slide-active) {
  opacity: 0 !important;
  visibility: hidden !important;
}

.gallery-portfolio__modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-portfolio__modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SwiperJS Container */
.gallery-portfolio__swiper {
  width: 100vw;
  height: 100vh;
  position: relative;
  /* Enable touch controls and dragging */
  touch-action: pan-x pan-y;
  cursor: default;
}

.gallery-portfolio__swiper .swiper-wrapper {
  align-items: center;
  /* Allow dragging on the wrapper */
  cursor: inherit;
}

.gallery-portfolio__swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6rem 2rem 8rem;
  box-sizing: border-box;
  /* Better touch responsiveness and dragging */
  touch-action: pan-x pan-y;
  cursor: default;
  /* Enable dragging for the entire slide area */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  /* Ensure slide takes full height and manages content properly */
  min-height: 100vh;
  overflow: hidden;
}

.gallery-portfolio__slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
  cursor: grab;
  transition: cursor 0.1s ease;
  max-height: calc(100vh - 12rem);
  justify-content: center;
  gap: 2rem;
}

/* Modal Image Container - Tailwind-like max-width approach */
.gallery-portfolio__modal-image-container {
  width: 100%;
  height: auto;
  max-height: 70vh;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 1;
}

/* Responsive breakpoints */
@media screen and (min-width: 640px) {
  .gallery-portfolio__modal-image-container {
    max-width: 640px;
  }
}

@media screen and (min-width: 768px) {
  .gallery-portfolio__modal-image-container {
    max-width: 768px;
  }
}

@media screen and (min-width: 1024px) {
  .gallery-portfolio__modal-image-container {
    max-width: 1024px;
    padding: 2.5rem;
  }
}

@media screen and (min-width: 1280px) {
  .gallery-portfolio__modal-image-container {
    max-width: 1280px;
    padding: 3rem;
  }
}

@media screen and (min-width: 1536px) {
  .gallery-portfolio__modal-image-container {
    max-width: 1536px;
  }
}

.gallery-portfolio__slide-content:active,
.gallery-portfolio__slide-content.dragging,
.gallery-portfolio__swiper .swiper-slide:active,
.gallery-portfolio__swiper .swiper-slide.dragging {
  cursor: grabbing;
}

.gallery-portfolio__swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6rem 2rem 8rem;
  box-sizing: border-box;
  touch-action: pan-x pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  min-height: 100vh;
  overflow: hidden;
  transition: cursor 0.1s ease;
}

.gallery-portfolio__modal-image {
  cursor: inherit;
  padding: 1rem;
  pointer-events: none; /* Prevent image drag interference */
}

.gallery-portfolio__modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Modal placeholder styles - should behave like regular images */
.gallery-portfolio__modal-image.gallery-portfolio__image--placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--media-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  /* Placeholder-specific background */
  background-color: rgb(var(--color-base-background-2));
  border: 1px solid rgba(var(--color-base-text), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-portfolio__modal-image.gallery-portfolio__image--placeholder svg {
  fill: currentColor;
  color: rgb(var(--color-base-text));
}

.gallery-portfolio__slide-info {
  position: relative;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  /* Remove margin since we now use gap in slide-content */
  margin: 0;
  /* Ensure it doesn't grow too much */
  flex-shrink: 0;
}

.gallery-portfolio__modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 4.4rem;
  height: 4.4rem;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 20;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  /* Better touch target */
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
}

.gallery-portfolio__modal-close:hover,
.gallery-portfolio__modal-close:focus {
  background: rgba(0, 0, 0, 0.95);
  border-color: white;
  transform: scale(1.1);
  outline: none;
}

.gallery-portfolio__modal-close:active {
  transform: scale(1.05);
}

/* SwiperJS Navigation Buttons */
.gallery-portfolio__nav-button,
.gallery-portfolio__swiper .swiper-button-next,
.gallery-portfolio__swiper .swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5.5rem;
  height: 5.5rem;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 15;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1 !important;
  margin-top: 0 !important;
}

.gallery-portfolio__nav-button:hover,
.gallery-portfolio__nav-button:focus {
  background: rgba(0, 0, 0, 0.95);
  border-color: white;
  transform: translateY(-50%) scale(1.1);
  outline: none;
}

.gallery-portfolio__nav-button:active {
  transform: translateY(-50%) scale(1.05);
}

.gallery-portfolio__nav-button.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.gallery-portfolio__nav-button.swiper-button-disabled:hover {
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.gallery-portfolio__nav-button.swiper-button-prev {
  left: 2rem;
}

.gallery-portfolio__nav-button.swiper-button-next {
  right: 2rem;
}

/* Hide SwiperJS default content */
.gallery-portfolio__swiper .swiper-button-next::after,
.gallery-portfolio__swiper .swiper-button-prev::after,
.gallery-portfolio__nav-button::after {
  display: none !important;
  content: '' !important;
}

/* Custom Arrow Icons */
.gallery-portfolio__nav-button::before {
  content: '';
  width: 1.4rem;
  height: 1.4rem;
  border: 3px solid white;
  border-left: none;
  border-bottom: none;
  display: block;
  transition: all 0.2s ease;
}

.gallery-portfolio__nav-button:hover::before,
.gallery-portfolio__nav-button:focus::before {
  border-color: white;
  border-width: 3px;
}

.gallery-portfolio__nav-button.swiper-button-prev::before {
  transform: rotate(-135deg);
  margin-left: 0.4rem;
}

.gallery-portfolio__nav-button.swiper-button-next::before {
  transform: rotate(45deg);
  margin-right: 0.4rem;
}

.gallery-portfolio__modal-title {
  margin: 0 0 0.5rem 0;
  font-size: 2.4rem;
  font-weight: var(--font-heading-weight);
  font-family: var(--font-heading-family);
  color: white;
  line-height: 1.3;
}

.gallery-portfolio__modal-counter {
  display: inline;
  margin: 0;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body-family);
  font-weight: 300;
  opacity: 0.9;
}

/* Mobile and Touch Device Optimizations */
@media screen and (max-width: 767px) {
  .gallery-portfolio__swiper .swiper-slide {
    padding: 3rem 1rem 8rem; /* Extra bottom padding for nav buttons */
  }
  
  .gallery-portfolio__slide-content {
    max-width: 95%;
    max-height: 85vh;
  }
  
  .gallery-portfolio__modal-image-container {
    max-height: 60vh;
  }
  
  .gallery-portfolio__modal-close {
    top: 1rem;
    right: 1rem;
    width: 3.6rem; /* Smaller close button */
    height: 3.6rem;
  }
  
  .gallery-portfolio__nav-button {
    width: 4rem !important; /* Smaller nav buttons */
    height: 4rem !important;
    /* Position at bottom of screen - force override */
    position: fixed !important;
    top: auto !important;
    bottom: 2rem !important;
    transform: none !important;
  }
  
  .gallery-portfolio__nav-button.swiper-button-prev {
    left: 2rem !important; /* More centered positioning */
  }
  
  .gallery-portfolio__nav-button.swiper-button-next {
    right: 2rem !important; /* More centered positioning */
  }
  
  .gallery-portfolio__nav-button::before {
    width: 1rem; /* Smaller arrow icons */
    height: 1rem;
    border-width: 2px;
  }
  
  /* Override hover states for bottom positioning */
  .gallery-portfolio__nav-button:hover,
  .gallery-portfolio__nav-button:focus {
    transform: scale(1.1); /* Remove translateY since buttons are at bottom */
  }
  
  .gallery-portfolio__nav-button:active {
    transform: scale(1.05);
  }
  
  .gallery-portfolio__nav-button.swiper-button-disabled:hover {
    transform: none;
  }
  
  .gallery-portfolio__slide-info {
    margin-top: 1.5rem;
  }
  
  .gallery-portfolio__modal-title {
    font-size: 2rem;
  }
  
  .gallery-portfolio__modal-counter {
    font-size: 1.3rem;
  }
}

/* Large screen optimizations */
@media screen and (min-width: 1200px) {
  .gallery-portfolio__modal-close {
    top: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
  }
  
  .gallery-portfolio__nav-button {
    width: 6rem;
    height: 6rem;
  }
  
  .gallery-portfolio__nav-button.swiper-button-prev {
    left: 3rem;
  }
  
  .gallery-portfolio__nav-button.swiper-button-next {
    right: 3rem;
  }
  
  .gallery-portfolio__nav-button::before {
    width: 1.6rem;
    height: 1.6rem;
  }
  
  .gallery-portfolio__modal-title {
    font-size: 2.8rem;
  }
  
  .gallery-portfolio__modal-counter {
    font-size: 1.8rem; /* Slightly larger for better readability on large screens */
  }
}

/* Touch device specific enhancements */
@media (hover: none) and (pointer: coarse) {
  .gallery-portfolio__nav-button,
  .gallery-portfolio__modal-close {
    min-height: 48px;
    min-width: 48px;
  }
  
  .gallery-portfolio__slide-content:active,
  .gallery-portfolio__slide-content.dragging {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Only apply hover overrides for non-mobile screens */
  .gallery-portfolio__modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .gallery-portfolio__nav-button:active,
  .gallery-portfolio__modal-close:active {
    background: rgba(0, 0, 0, 0.95);
    border-color: white;
  }
}
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .gallery-portfolio__image,
  .gallery-portfolio__overlay,
  .gallery-portfolio__modal,
  .gallery-portfolio__nav-button,
  .gallery-portfolio__modal-close {
    transition: none;
  }
  
  .gallery-portfolio__item:hover .gallery-portfolio__image {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gallery-portfolio__modal-backdrop {
    background-color: rgba(0, 0, 0, 0.95);
  }
  
  .gallery-portfolio__nav-button,
  .gallery-portfolio__modal-close {
    border-width: 3px;
    background: rgba(0, 0, 0, 0.95);
  }
}