/* Стили для страницы "Наши работы" */
.pinterest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
    align-items: start;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

.grid-item:hover img {
    transform: scale(1.05);
}

.back-link {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.back-link .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.back-link .btn:hover {
    background-color: var(--light-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Стили для полноэкранного просмотра */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 3px;
    right: 15px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-btn {
    position: absolute;
    top: 92%;
    transform: translateY(-50%);
    color: white;
    font-size: 5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}
