/* css/components/gallery-lightbox.css */

.colo-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--clr-bg-card);
  box-shadow: 0 4px 8px rgba(var(--clr-text-rgb), 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.colo-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 6px 12px rgba(var(--clr-text-rgb), 0.07);
}

.colo-card img.lazy-load-gallery {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease-in-out;
}

.colo-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: left;
}

.colo-card:hover .colo-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.colo-card-overlay p {
  margin: 0.1rem 0;
  line-height: 1.2;
}

/* Lightbox Styles */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 2.5vh 2.5vw;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  box-sizing: border-box;
}

body.dark .lightbox-modal {
  background-color: rgba(10, 10, 12, 0.92);
}

.lightbox-content-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
}

.lightbox-image-container {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.lightbox-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--clr-bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(var(--clr-text-rgb), 0.1);
  color: var(--clr-text);
}

.lightbox-info-panel-desktop {
  flex-shrink: 0;
  width: 320px;
  max-height: 100%;
  overflow-y: auto;
  display: none;
  gap: 1.5rem;
}

.lightbox-artist-info-block,
.lightbox-colo-info-block {
  background-color: rgba(var(--clr-bg-rgb-val), 0.03);
  border: 1px solid rgba(var(--clr-text-rgb), 0.08);
  border-radius: 6px;
  padding: 1rem;
}

body.dark .lightbox-artist-info-block,
body.dark .lightbox-colo-info-block {
  background-color: rgba(var(--clr-bg-rgb-val), 0.08);
  border-color: rgba(var(--clr-text-rgb), 0.12);
}

.lightbox-info-panel-mobile {
  display: none;
  width: 90%;
  max-width: 450px;
  margin: 1rem auto 0 auto;
}

.lightbox-artist-info .artist-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.lightbox-artist-pfp {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-primary);
}

.lightbox-artist-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.lightbox-artist-socials a,
.lightbox-colo-socials a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-text-sub);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lightbox-artist-socials a i,
.lightbox-colo-socials a i {
  font-size: 1.1rem;
  color: var(--clr-primary);
}

.lightbox-artist-socials a:hover,
.lightbox-colo-socials a:hover {
  color: var(--clr-primary);
}

.lightbox-colo-info p {
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #ccc;
  font-size: 35px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1002;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #fff;
}

/* --- Media Queries --- */
@media (min-width: 993px) {
  .lightbox-info-panel-desktop { display: flex; margin-left: 1rem; }
  .lightbox-info-panel-mobile { display: none; }
}

@media (max-width: 992px) {
  .lightbox-content-wrapper { flex-direction: column; align-items: center; padding-top: 40px; }
  .lightbox-image { max-height: 70vh; }
  .lightbox-info-panel-desktop { display: none; }
  .lightbox-info-panel-mobile { display: flex; flex-direction: row; max-width: 600px; }
  .lightbox-info-panel-mobile .lightbox-artist-info { border-right: 1px solid rgba(var(--clr-text-rgb), 0.1); padding-right: 1rem; flex: 1; }
  .lightbox-info-panel-mobile .lightbox-colo-info { padding-left: 1rem; flex: 1; }
}

@media (max-width: 768px) {
  .colo-card { margin-bottom: .6rem; }
  .colo-card-overlay { opacity: 1; transform: translateY(0); padding: .4rem; }
  .colo-card-overlay p { font-size: .7rem; }
  .lightbox-modal { padding: 10px; }
  .lightbox-image { max-height: 60vh; }
  .lightbox-info-panel-mobile { flex-direction: column; font-size: .9em; }
  .lightbox-info-panel-mobile .lightbox-artist-info { border-right: none; border-bottom: 1px solid rgba(var(--clr-text-rgb), 0.1); padding: 0 0 1rem 0; margin-bottom: 1rem; }
  .lightbox-info-panel-mobile .lightbox-colo-info { padding-left: 0; }
  .lightbox-artist-pfp { width: 40px; height: 40px; }
  .lightbox-artist-name { font-size: 1rem; }
  .lightbox-close { top: 10px; right: 15px; font-size: 28px; }
}