@import url("./common.css");

main {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.sidebar {
  padding: 1.25rem;
}

.sidebar h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  cursor: default;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 2rem;
}

.sidebar ul li {
  margin-bottom: 0.625rem;
}

.sidebar ul li a {
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.25px;
}

.sidebar ul li a.active {
  color: rgba(0, 0, 0, 0.75);
  font-weight: 500;
  pointer-events: none;
}

.sidebar ul li a:hover {
  color: rgba(0, 0, 0, 0.75);
}

.h1-con {
  display: inline-block;
  text-align: right;
  margin-bottom: 3rem;
  min-width: 480px;
}

.h1-con .work-info-con {
  display: flex;
  padding-right: 1rem;
  justify-content: space-between;
  align-items: end;
}

.work-info-left-con {
  text-align: left;
  font-style: italic;
  cursor: pointer;
  line-height: 1.25;
  font-weight: 600;
}

.work-info-left-con:hover {
  text-decoration: underline;
}

.h1-con .duration {
  font-size: 1.25rem;
  font-weight: 500;
}

.h1-con .slideshow-text {
  display: inline-block;
  cursor: pointer;
}

h1 {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* grid */
.projects-grid {
  display: grid;
  gap: 1rem;
  row-gap: 1rem;
  width: 100%;
  /* Initial grid settings - will be updated by script */
  grid-template-columns: repeat(24, minmax(25px, 1fr));
}

.project-card {
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.project-card:hover {
  opacity: 0.9;
  z-index: 1;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-img {
  opacity: 0.9;
}

.carousel-inner {
  height: 100%;
}

.carousel-inner * {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
}

/* .glightbox img {
  pointer-events: none;
} */

/* Define different sizes for certain items to create variety */

.aspect-3-2 {
  grid-column: span 3;
  grid-row: span 2;
}

.aspect-2-3 {
  grid-column: span 2;
  grid-row: span 3;
}

.aspect-2-auto {
  grid-column: span 2;
}

.aspect-3-auto {
  grid-column: span 3;
}

.aspect-4-auto {
  grid-column: span 4;
}

.aspect-5-auto {
  grid-column: span 5;
}

.aspect-6-auto {
  grid-column: span 6;
}

.aspect-12-auto {
  grid-column: span 12;
}

.heading-link {
  color: #212529;
  text-decoration: none;
  border: 1px solid #212529;
  padding: 1rem 2rem;
  margin-top: 1rem;
  letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .projects-grid {
    display: block;
  }

  .project-card {
    margin-top: 1rem;
    width: 100%;
  }

  .aspect-3-2,
  .aspect-2-3 {
    grid-column: span 1;
    grid-row: span 1;
  }
}