/* ============================================
PORTFOLIO PAGE STYLES
============================================ */

span.page-label {
  font-weight: bold;
}

/* Main portfolio area background */
.portfolio-gallery.modern-gallery {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(to bottom, #faf8f3 0%, #ffffff 100%);
  min-height: 80vh;
}

/* Artist header similar to the reference image */
.artist-header-block {
  text-align: center;
  margin-bottom: 0.75rem;
}

.artist-name-heading {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 900;
  color: #111111;
}

.artist-divider-line {
  width: 100%;
  height: 1px;
  background: #d9d9d9;
  margin: 0 auto 2.5rem;
}

/* Featured artwork (large image in the center) */
.featured-artwork-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.featured-artwork-image {
  max-width: 640px;
  width: 100%;
  background: #f3f3f3;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.featured-artwork-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.featured-artwork-image img.clickable-image {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.featured-artwork-image img.clickable-image:hover {
  transform: scale(1.02);
}

.featured-nav {
  border: none;
  background: rgba(0, 0, 0, 0.04);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111111;
  transition: all 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.featured-nav i {
  font-size: 1rem;
}

.featured-nav:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* Text content under the large image */
.featured-artwork-content {
  text-align: center;
  margin-bottom: 2rem;
}

.featured-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  color: #111111;
}

.featured-subtitle {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #3c3c3c;
}

.featured-details {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 0.35rem;
}

.featured-details.sold-out {
  color: #d22121;
  font-weight: 600;
}

.featured-enquiry-text {
  font-size: 0.95rem;
  color: #777777;
}

.featured-enquiry-link {
  color: #466943;
  text-decoration: none;
  border-bottom: 1px solid #466943;
  padding-bottom: 1px;
}

.featured-enquiry-link:hover {
  color: #395137;
  border-color: #395137;
}

/* Thumbnail strip */
.thumbnail-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  padding: 0.5rem 0.25rem;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.thumbnail-item {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  transition: all 0.25s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 60px;
  min-height: 60px;
}

.thumbnail-item img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: cover;
  filter: saturate(0.9);
  opacity: 0.7;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.thumbnail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.thumbnail-item:hover img {
  opacity: 0.95;
  filter: saturate(1.1);
}

.thumbnail-item.active {
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.thumbnail-item.active img {
  opacity: 1;
  filter: saturate(1.1);
}

/* Sold Out Badge */
.thumbnail-item {
  position: relative;
}

.sold-out-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(210, 33, 33, 0.85);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.thumbnail-item[data-sold="true"] img {
  opacity: 0.5;
  filter: grayscale(0.3);
}

.thumbnail-item[data-sold="true"]:hover img {
  opacity: 0.6;
  filter: grayscale(0.4);
}

/* Sold Out indicator for featured artwork */
.featured-artwork-image {
  position: relative;
}

.featured-sold-out {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(210, 33, 33, 0.85);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 10;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  text-align: center;
  color: var(--white);
  margin-bottom: 20px;
}

.lightbox-info h3 {
  font-size: 2rem;
  margin-bottom: 0;
  color: var(--white);
}

.lightbox-info p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  transition: transform var(--transition-base);
  z-index: 2001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-base);
  z-index: 2001;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* ============================================
   ZOOM MODAL STYLES
   ============================================ */

.zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 3000;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.zoom-modal.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zoom-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3001;
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.zoom-controls {
  position: absolute;
  top: 30px;
  left: 40px;
  display: flex;
  gap: 0.75rem;
  z-index: 3001;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.zoom-container.grabbing {
  cursor: grabbing;
}

.zoom-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

.zoom-info {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  z-index: 3001;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.zoom-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.zoom-info p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 968px) {
  .portfolio-gallery.modern-gallery {
    padding: 2rem 0 2rem;
  }

  .featured-artwork-wrapper {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .featured-artwork-image {
    max-width: 100%;
  }

  .featured-nav {
    width: 40px;
    height: 40px;
  }

  .featured-nav i {
    font-size: 0.9rem;
  }

  .featured-title {
    font-size: 1.4rem;
  }

  .featured-subtitle {
    font-size: 1rem;
  }

  .featured-details,
  .featured-enquiry-text {
    font-size: 0.9rem;
  }

  .thumbnail-item img {
    width: 80px;
    height: 80px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    padding: 1rem;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 2.5rem;
  }

  .lightbox-info h3 {
    font-size: 1.5rem;
  }

  .lightbox-info p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .portfolio-gallery.modern-gallery {
    padding: 1.5rem 0 1.5rem;
  }

  .featured-artwork-wrapper {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
  }

  .featured-nav {
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .featured-nav-prev {
    left: 10px;
  }

  .featured-nav-next {
    right: 10px;
  }

  .featured-nav:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.1);
  }

  .featured-artwork-image {
    width: 100%;
    order: 2;
  }

  .featured-artwork-content {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .featured-title {
    font-size: 1.3rem;
  }

  .featured-subtitle {
    font-size: 0.95rem;
  }

  .featured-details,
  .featured-enquiry-text {
    font-size: 0.85rem;
  }

  .thumbnail-strip {
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .thumbnail-item img {
    width: 70px;
    height: 70px;
  }

  .zoom-controls {
    top: 15px;
    left: 15px;
    flex-direction: column;
    gap: 0.5rem;
  }

  .zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .zoom-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .zoom-info {
    bottom: 15px;
    padding: 0.75rem 1.25rem;
    max-width: 90%;
  }

  .zoom-info h3 {
    font-size: 1.1rem;
  }

  .zoom-info p {
    font-size: 0.85rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 45px;
    height: 45px;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox-content {
    max-width: 95%;
    gap: 1.5rem;
  }

  .lightbox img {
    max-height: 70vh;
  }

  .lightbox-info {
    margin-bottom: 15px;
  }

  .lightbox-info h3 {
    font-size: 1.3rem;
  }

  .lightbox-info p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .sold-out-badge {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }

  .featured-sold-out {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .portfolio-gallery.modern-gallery {
    padding: 1rem 0 1.5rem;
  }

  .featured-artwork-wrapper {
    margin-bottom: 1rem;
  }

  .featured-nav {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.95);
  }

  .featured-nav i {
    font-size: 0.8rem;
  }

  .featured-artwork-content {
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .featured-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .featured-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .featured-details {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .featured-enquiry-text {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .thumbnail-strip {
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
  }

  .thumbnail-item {
    border-radius: 4px;
  }

  .thumbnail-item img {
    width: 60px;
    height: 60px;
  }

  .zoom-controls {
    top: 10px;
    left: 10px;
    gap: 0.4rem;
  }

  .zoom-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .zoom-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .zoom-info {
    bottom: 10px;
    padding: 0.6rem 1rem;
    max-width: 95%;
  }

  .zoom-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .zoom-info p {
    font-size: 0.8rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
  }

  .lightbox-content {
    max-width: 98%;
    gap: 1rem;
  }

  .lightbox img {
    max-height: 65vh;
  }

  .lightbox-info h3 {
    font-size: 1.2rem;
  }

  .lightbox-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .featured-nav {
    width: 36px;
    height: 36px;
  }

  .featured-nav i {
    font-size: 0.7rem;
  }

  .featured-title {
    font-size: 1.1rem;
  }

  .featured-subtitle {
    font-size: 0.85rem;
  }

  .thumbnail-item img {
    width: 55px;
    height: 55px;
  }

  .zoom-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .zoom-close {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .lightbox-close {
    width: 32px;
    height: 32px;
    font-size: 1.6rem;
  }
}


@media (max-width: 1200px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .gallery-item.large {
    grid-row-end: span 22;
  }
  .gallery-item.medium {
    grid-row-end: span 18;
  }
  .gallery-item.small {
    grid-row-end: span 16;
  }
}

@media (max-width: 968px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-row-end: span 18;
  }
}

@media (max-width: 768px) {
  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-row-end: span 14;
  }
}

@media (max-width: 600px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
  }
  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-row-end: span 20;
  }
}
@media (max-width: 500px) {
  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-row-end: span 16;
  }
}
