/* =====================
   BASE RESET
===================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background: #f8f8f8;
  color: #373737;
}

header {
  max-width: 1400px;
  margin: 120px auto 40px;
  padding: 0 20px;
}

header h1 {
  font-size: 32px;
  font-weight: 600;
}

@media (max-width: 900px) {
  header {
    text-align: center;
  }
}


/* =====================
   LINKS
===================== */

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   TOP NAV
===================== */

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(248, 248, 248, 0.95);
  z-index: 100;
}

.topnav a {
  display: inline-block;
  padding: 14px 18px;
}

.topnav a.active {
  background: #9c9c9c;
}

/* =====================
   HERO
===================== */

.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================
   HOME PAGE GALLERY
===================== */

.home-gallery {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 120px auto 40px;
  padding: 0 20px;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Clickable container */
.container {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.container img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Hover fade */
.container:hover img {
  opacity: 0.5;
}

/* Overlay text */
.middle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.container:hover .middle {
  opacity: 1;
}

.text {
  font-size: 30px;
  color: #f8f8f8;
  text-align: center;
}

/* =====================
   Main PAGE (UNSPLASH STYLE)
===================== */

.main-gallery {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 120px auto;
  padding: 0 20px;
  justify-content: center;
}


.main-column {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center; 
}



.main-column img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
}

/* =====================
   LIGHTBOX
===================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  color: #fff;
  font-size: 16px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.lightbox-close {
  top: 20px;
  right: 30px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 1100px) {
  .main-gallery {
    flex-wrap: wrap;
  }
  .main-column {
    flex: 0 0 48%;
  }
}

@media (max-width: 600px) {
  .main-column {
    flex: 0 0 100%;
  }
}