body {
  margin: 0;
  background: #0a0a0a;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 2rem;
  background: #000;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 80px;
  height: 80px;
}

.name {
  font-size: 1.6875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.header-center {
  text-align: center;
  flex-grow: 1;
}

.title-text {
  font-size: 1.6875rem;
  font-weight: 500;
}

.header-right {
  display: flex;
  gap: 2rem;
}

.header-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0rem 3rem;
}

.full-width.title-row h1 {
  font-size: 4rem;
  font-weight: 800;
}

.content-row {
  display: flex;
  gap: 2rem;
}

.left-text {
  flex: 1;
  font-size: 1.6rem;
  line-height: 1.6;
}

.right-tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bottom-row {
  display: flex;
  gap: 2rem;
}

.long-tile {
  width: 50%;
  max-width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Ensure image fits 340 high frame proportionally */
.long-tile img {
  background: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
  height: 300px;
  object-fit: fill;
  max-height: 340px;
  margin: 0 auto;
}

.long-tile span {
  padding: 0.75rem;
  font-weight: 600;
}

.long-tile:hover {
  transform: translateY(-4px);
}

.bottom-right-tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile {
  background: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.tile:hover {
  transform: translateY(-4px);
}

.tile img {
  width: 100%;
  height: 300px;
  object-fit: fill;
  border: none;
}

.tile span {
  padding: 0.75rem;
  font-weight: 600;
}


/* Ensure images fit 222 x 340 frame proportionally */
.tile img {
  width: 100%;
  height: 300px;
  object-fit: fill;
  max-height: 340px;
  max-width: 222px;
  margin: 0 auto;
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-left,
  .header-center,
  .header-right {
    width: 100%;
    text-align: left;
  }

  .main-grid {
    padding: 0rem;
  }

  .content-row,
  .bottom-row {
    flex-direction: column;
  }

  .right-tiles,
  .bottom-right-tiles {
    grid-template-columns: 1fr;
  }

  .tile img {
    max-width: 50%;
    height: auto;
  }

  .title-text {
    font-size: 1.2rem;
  }

  .name {
    font-size: 1.4rem;
  }
}
