@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-display: swap;
  color: #111;
  background: #fafafa;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease-in-out;
}

a:hover {
  color: #434343;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

.container {
  max-width: 1440px;
  padding: 24px 36px;
  margin: 0 auto;
  text-align: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.header-container {
  height: 100px;
}

html {
  overflow-y: scroll;
}

.site-header {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.heading {
  font-size: 32px;
  font-weight: 500;
  text-align: left;
}

.nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header-diamond {
  width: 16px;
  height: 16px;
  background: black;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.photo {
  margin-bottom: 40px;
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.photo-item {
  display: flex;
}

.photo-card {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 14px 18px;
}

.photo-title {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
}

.photo-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-top: 8px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.8);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.close:hover {
  opacity: 0.7;
}

.about-title {
  margin-bottom: 36px;
}

.about-text {
  margin: 0 auto;
  max-width: 920px;
  font-size: 18px;
  line-height: 32px;
}

.footer-link {
  font-size: 18px;
  font-weight: 300;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.6;
}


@media (max-width: 768px) {
  .container {
    padding: 24px 12px;
  }

  .heading {
    font-size: 24px;
  }

  .nav {
    gap: 24px;
  }
}

@media (max-width: 448px) {
  .photo-list {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}
