/* Project Gallery Layout */

.project-header {
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: -80px;
}

.project-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 68, 84, 0.7);
}

.project-title {
  position: relative;
  z-index: 1;
  text-align: center;
}

.project-title h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.project-title p {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1; /* Square crop for grid, lightbox shows full */
}
