body{
    background-color: #FDF5EE;
    overflow-x: hidden
}
html{
    overflow-x: hidden
}

.fluid-header {
    background-image: url(glav.jpg);
    height: 35vh;                 /* 100% высоты экрана */
    width: 100%;                /* 100% ширины экрана */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5) /* тень снизу */
}

.heading{
    top: 50px
}

@media (min-width: 320px) and (max-width: 720px){
    .heading{
        top: 130px;
    }
    p.heading2{
        font-size: 1.9vw;
        width: 70vw;
    }
    .fluid-header {
    height: 30vh;                 /* 100% высоты экрана */

    }

}
@media (min-width: 700px) and (max-width: 900px){
    .heading{
        top: 120px;
    }
    p.heading2{
        font-size: 1.6vw;
        width: 70vw;
    }

}
/*------------------------------------------------------------------------*/


.gallery{
    margin-bottom: 30px;
}


.card-portfolio {
    width: 100%;              /* занимает всю ширину колонки */
    max-width: 350px;         /* максимальная ширина, чтобы не раздувались */
    aspect-ratio: 1 / 1; 
    border-radius: 20px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    border: 1px solid rgba(65, 44, 31, 0.7);
    filter: drop-shadow(0px 4px 2px black);
    transition: box-shadow 0.3s ease;
}

.card-portfolio:hover {
    box-shadow: 0 10px 10px rgba(65, 44, 31, 0.5),
                0 -10px 10px rgba(65, 44, 31, 0.5);
}
.card-img-top {
    width: 100%;    /* или нужный вам фиксированный размер */
    object-fit: cover;
    border-radius: 20px;
}

.btn {
    color: rgb(67, 34, 9);
    font-family: Ledger;
    filter: drop-shadow(0px 1px 5px rgba(81, 41, 8, 0.693));
}

/*------------------------------------------------------------------------*/

        .preview-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }
        .preview-item {
            position: relative;
            width: 150px;
            height: 150px;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow: hidden;
        }
        .preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .remove-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(255,0,0,0.7);
            color: white;
            border: none;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            cursor: pointer;
            font-weight: bold;
        }


        .upload-btn {
            background-color: rgba(112, 80, 30, 0.9);
            color: white;
            border: 1px solid black;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 15px;
        }
        .upload-btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
        .error-message {
            color: red;
            margin-top: 10px;
        }
        .success-message {
            color: green;
            margin-top: 10px;
        }

