.ttcn-drive-albums {
  --ttcn-card: #ffffff;
  --ttcn-text: #1a2b3c;
  --ttcn-subtle: #5b6d80;
  --ttcn-accent: #0d6efd;
  --ttcn-shadow: 0 14px 28px rgba(13, 44, 84, 0.12);
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: var(--ttcn-text);
}

.ttcn-drive-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 0;
}

.ttcn-drive-back {
  border: 0;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  background: #122a4a;
  color: #fff;
  cursor: pointer;
}

.ttcn-drive-back[hidden] {
  display: none !important;
}

.ttcn-album-grid,
.ttcn-image-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.ttcn-album-card {
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ttcn-card);
  box-shadow: var(--ttcn-shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ttcn-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(13, 44, 84, 0.16);
}

.ttcn-album-cover {
  width: 100%;
  aspect-ratio: 16/11;
  background-size: cover;
  background-position: center;
  background-color: #dce7f6;
}

.ttcn-album-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e8197;
  font-weight: 600;
}

.ttcn-album-meta {
  padding: 14px;
}

.ttcn-album-meta h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.ttcn-album-meta p {
  margin: 0;
  color: var(--ttcn-subtle);
}

.ttcn-gallery-title {
  margin: 0 0 12px;
  font-size: 20px;
}

.ttcn-image-item {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 50, 92, 0.1);
  cursor: pointer;
}

.ttcn-image-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.ttcn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.ttcn-lightbox[hidden] {
  display: none;
}

.ttcn-lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
}

.ttcn-lightbox-close,
.ttcn-lightbox-prev,
.ttcn-lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
}

.ttcn-lightbox-close {
  top: 18px;
  right: 18px;
}

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

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

.ttcn-lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  padding: 0 16px;
}

.ttcn-drive-alert {
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff4d7;
  color: #664b00;
  margin: 14px 0;
}

.ttcn-drive-alert--error {
  background: #ffe4e7;
  color: #7a1220;
}

body.ttcn-lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .ttcn-drive-albums {
    padding: 0;
  }

  .ttcn-album-grid,
  .ttcn-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ttcn-lightbox-prev,
  .ttcn-lightbox-next {
    width: 38px;
    height: 38px;
  }
}
