/* =========================================
   GALLERY SPECIFIC STYLES
   ========================================= */

/* 1. Grid Layout */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding-bottom: 2rem;
}

/* 2. Kortet (Wrapper) */
.tech-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  margin: 0;
  padding: 0;
  border: none;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(86, 195, 234, 0.3);
  border: 1px solid var(--gradient-color4);
}

/* 3. Bild-container & Bild */
.tech-image-container {
  width: 100%;
  height: 100%;
}

.tech-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.tech-card:hover .tech-image-container img {
  transform: scale(1.05);
}

/* 4. Tech Overlay (EXIF-datan) */
.tech-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(4px);
  border-top: 1px solid var(--gradient-color4);
  color: var(--white);
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  font-family: "Saira Condensed", sans-serif;
  letter-spacing: 0.05rem;
  text-align: left;
  pointer-events: none; 
}

/* Full Gallery layout adjustment */
div.fullgallery > a.trigger2.shadow > img {
  width: 100%; height: auto;
  object-fit: cover;
  transition: var(--transition);
}
div.fullgallery > a.trigger2.shadow > img:hover {
  filter: drop-shadow(0 0 0.75rem var(--shadow-darkgrey));
}

/* MEDIA QUERIES FOR GALLERY */
@media screen and (max-width: 600px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-overlay { font-size: 0.75rem; padding: 0.5rem; }
}
