/* ===== Bemutatkozás ===== */

main {
    background: #f4f6f6;
}

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    padding: 4rem 2rem 5rem;
}


/* ===== Kártyák ===== */

.about-card {
    background: #fff;

    border: 1px solid #e5e8e8;
    border-radius: 18px;

    padding: 2.2rem;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);

    margin-bottom: 1.5rem;
}

.about-card:last-child {
    margin-bottom: 0;
}


/* ===== Szöveg ===== */

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    display: block;

    margin-bottom: 0.7rem;

    color: #0f766e;

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.about-text h1,
.about-text h2 {
    margin-bottom: 1.2rem;

    color: #222;

    line-height: 1.3;
}

.about-text h1 {
    font-size: 2.2rem;
}

.about-text h2 {
    font-size: 1.7rem;
}

.about-text h3 {
    margin-top: 1.7rem;
    margin-bottom: 0.8rem;

    color: #333;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1rem;

    color: #555;

    line-height: 1.75;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}


/* ===== Eszközlista ===== */

.equipment-list {
    margin: 0;
    padding-left: 1.2rem;

    color: #555;

    line-height: 1.9;
}

.equipment-list li::marker {
    color: #0f766e;
}

/* ===== Tablet ===== */

@media (max-width: 800px) {

    .about-container {
        padding: 3rem 1.2rem 4rem;
    }

    .about-card {
        padding: 1.7rem;
    }

}


/* ===== Mobil ===== */

@media (max-width: 600px) {

    .about-container {
        padding: 2.5rem 1rem 3rem;
    }

    .about-card {
        padding: 1.2rem;

        border-radius: 14px;
    }

    .about-text h1 {
        font-size: 1.9rem;
    }

    .about-text h2 {
        font-size: 1.4rem;
    }

    .about-text p {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .equipment-list {
        font-size: 0.92rem;
    }
}

/* ===== Galéria ===== */

.gallery-wrapper {
    width: 100%;
    margin-top: 2rem;
}

.gallery-container {
    position: relative;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    overflow: hidden;
    border-radius: 12px;
}

.gallery-image {
    display: none;

    width: 100%;
    max-height: 550px;

    object-fit: cover;

    border-radius: 12px;

    cursor: zoom-in;

    user-select: none;

    transition: opacity 0.3s ease;
}

.gallery-image.visible {
    display: block;
}


/* ===== Galéria gombok ===== */

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;

    margin-top: 1rem;
}

.gallery-controls button {
    border: none;
    cursor: pointer;
    background: rgb(99, 146, 99);
    font-weight: 400;
    padding: 10px;
    border-radius: 25px;
    font-size: 0.8rem;
}


/* ===== Képnézegető ===== */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    background: rgba(0, 0, 0, 0.88);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}


/* Nagyított kép */

.lightbox img {
    display: block;

    max-width: 90vw;
    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);

    transform: scale(0.95);

    transition: transform 0.25s ease;
}

.lightbox.open img {
    transform: scale(1);
}


/* Bezáró gomb */

.lightbox-close {
    position: absolute;

    top: 1.2rem;
    right: 1.5rem;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    font-size: 2rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}


/* ===== Mobil ===== */

@media (max-width: 900px) {

    .card {
        width: calc(100% - 2rem);

        margin: 1rem auto;
        padding: 1.4rem;

        border-radius: 12px;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .gallery-wrapper {
        margin-top: 1.5rem;
    }

    .gallery-container {
        border-radius: 10px;
    }

    .gallery-image {
        max-height: 400px;
        border-radius: 10px;
    }

    .gallery-controls {
        gap: 1rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox img {
        max-width: 96vw;
        max-height: 85vh;
        border-radius: 6px;
    }

    .lightbox-close {
        top: 0.8rem;
        right: 0.8rem;

        width: 40px;
        height: 40px;

        font-size: 1.7rem;
    }
}