.tn-photos-videos { margin-top: 24px; }
.tn-photos-videos h2 { font-size: 1.6rem; margin-bottom: 12px; }
.tn-gallery-title { font-size: 1.25rem; margin: 18px 0 10px; }
.tn-gallery-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:14px; }
.tn-gallery-card { background:#fff; border:1px solid #eee; border-radius:10px; overflow:hidden; transition: transform 0.2s, box-shadow 0.2s; }
.tn-gallery-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.tn-gallery-card img { width:100%; height:220px; object-fit:cover; display:block; }
.tn-gallery-card figcaption { padding:8px 10px; }
.tn-gallery-card h3 { font-size:1rem; margin:0; line-height:1.3; }
.tn-gallery-link { display:block; cursor:pointer; }

/* TN-PATCH START: Lightbox Styles */
.tn-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.tn-lightbox.tn-lightbox-open {
  opacity: 1;
  visibility: visible;
}

.tn-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tn-lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transition: opacity 0.3s;
  border-radius: 4px;
}

.tn-lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 15px 20px;
  font-size: 1.1rem;
  max-width: 800px;
  margin-top: 10px;
}

.tn-lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

.tn-lightbox-close,
.tn-lightbox-prev,
.tn-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.tn-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.tn-lightbox-prev:hover,
.tn-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.tn-lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
}

.tn-lightbox-prev,
.tn-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.tn-lightbox-prev {
  left: 20px;
}

.tn-lightbox-next {
  right: 20px;
}

.tn-lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  animation: tn-spin 0.8s linear infinite;
}

.tn-lightbox-loader.tn-lightbox-loading {
  opacity: 1;
  visibility: visible;
}

@keyframes tn-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .tn-lightbox-prev,
  .tn-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
  
  .tn-lightbox-prev {
    left: 10px;
  }
  
  .tn-lightbox-next {
    right: 10px;
  }
  
  .tn-lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
  
  .tn-lightbox-image {
    max-height: 80vh;
  }
  
  .tn-lightbox-caption {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
}
/* TN-PATCH END */

