/* Ceramics Page Styles */

.ceramics-page .post-content {
  margin-bottom: 0;
  padding-bottom: 40px;
}

/* Ceramics Gallery Grid */
.ceramics-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 4px solid #0a0a0a;
}

.ceramic-item {
  border-right: 4px solid #0a0a0a;
  border-bottom: 4px solid #0a0a0a;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ceramic-item:nth-child(2n) {
  border-right: none;
}

.ceramic-item:hover {
  background: #fafafa;
}

/* Ceramic Image */
.ceramic-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
  border-bottom: 4px solid #0a0a0a;
}

.ceramic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

/* Ceramic Info */
.ceramic-info {
  padding: 25px 30px 30px 30px;
}

.ceramic-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.ceramic-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 15px;
}

.ceramic-details {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666666;
  font-family: 'Courier New', monospace;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .ceramics-gallery {
    grid-template-columns: 1fr;
  }

  .ceramic-item {
    border-right: none;
  }

  .ceramic-info {
    padding: 20px;
  }

  .ceramic-info h3 {
    font-size: 1.3rem;
  }
}

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

  .ceramic-item:nth-child(2n) {
    border-right: 4px solid #0a0a0a;
  }

  .ceramic-item:nth-child(3n) {
    border-right: none;
  }
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 4px solid #ffffff;
}

.lightbox-caption {
  text-align: center;
  padding: 20px;
  max-width: 600px;
}

.lightbox-caption h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.lightbox-caption p {
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

/* Lightbox Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 24px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #ffffff;
  color: #0a0a0a;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 32px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Make ceramic images clickable */
.ceramic-image {
  cursor: pointer;
}

/* Responsive Lightbox */
@media (max-width: 768px) {

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .lightbox-caption h3 {
    font-size: 1.2rem;
  }

  .lightbox-caption p {
    font-size: 0.9rem;
  }
}