:root {

    --bg-primary: #F1F2EE; 
    --bg-card: #FFFFFF;

    --alt-grey: #2D3328; 
    --alt-grey-t: #2D332880;

    --text-main: #1A1C19;
    --text-on-grey: #ECF0E9;

    --accent: #5F6B4E; 
    --border: #D1D5C9;

    --page-width: 1200px;
}
body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: "Inter";
    line-height: 1.6;
    margin: 0;
}

/*Typography*/

h1,
h2,
h3,
.title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    color: var(--alt-grey);
    border-bottom: 2px solid var(--border);
}

h2 {
    font-size: 1.6rem;
}

h3,
.title,
.text-about {
    font-size: 1.2rem;
}

.accent {
    color: var(--accent);
}


.container-index h2 {
    color: white;
    text-align: left;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}


/*Nav*/
header {
    position: sticky;
    background-color: var(--alt-grey);
    border-bottom: 2px solid var(--border);
    color: var(--text-on-grey);
    padding: 24px 0;
}

.nav-bar {
    max-width: calc(var(--page-width) * 1.05);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-bar a {
    text-decoration: none;
    color: var(--text-on-grey);
    margin-left: 48px;
    font-weight: 450;
}

.nav-bar a:hover {
    text-decoration: underline;
    color: var(--accent)
}

/*Container*/
main {
    margin-left: auto;
    margin-right: auto;

    max-width: var(--page-width);
}

.container-index {
    background-color: var(--alt-grey);
    color: var(--text-on-grey);
    padding: 48px 24px;
    text-align: center;
}

.container-about,
.container-gallery {
    margin-top: 40px;
}

.container-about {
    text-align: center;
}

.container-gallery {
    --gap-size: 12px;

    display: grid;

    gap: var(--gap-size);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

.container-carousel{
    width: 100%;
    margin: 40px auto;
    position: relative;
}

.container-slideshow{
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--alt-grey-t);
}

/*Index*/
.btn-about {
    background: transparent;
    margin-top: 24px;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;

    text-decoration: none;
    letter-spacing: 1px;
    padding: 12px 24px;

    border-radius: 8px;

}

/*Gallery*/
.gallery-item {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-card);
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--alt-grey);
}

.gallery-item img {
    width: 100%;
    border-radius: 4px;
    height: 360px;

    object-fit: cover;
    object-position: center center;
    
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-desc {
    text-align: center;
    padding: 12px;
}

.gallery-desc p {
    color: var(--text-main);
    margin: 4px 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*About*/
.about {
    background-color: var(--bg-card);
    margin: 0 auto;
    width: calc(var(--page-width)*0.5);
    text-align: left;
    padding: 32px;
    box-shadow: 4px 8px 4px var(--alt-grey);
}

.about hr {
    width: 95%;
    border: 2px solid var(--alt-grey);
    border-radius: 2px;
}

/*Form*/
input[type=text],
textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--alt-grey);
    font-size: 1.2rem;
    padding: 4px
}

input[type=text]:focus,
textarea:focus {
    outline: none;
}

textarea {
    resize: none;
    overflow: auto;
    margin-top: 12px;
}

input::placeholder,
textarea::placeholder {
    font-weight: 450;
}

.btn-send {
    background-color: var(--alt-grey);
    color: white;
    text-decoration: none;
    border: 1px solid var(--border);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 24px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-top: 24px;
    text-transform: uppercase;
}

.btn-send:hover {
    background-color: var(--accent);
}

/*Button-alignment*/
.button-right {
    text-align: right;
}

.button-left {
    text-align: left;
}

/*Footer*/
footer {
    background-color: var(--alt-grey);
    color: var(--text-on-grey);
    border-top: 2px solid var(--border);
    padding: 24px 0;
    text-align: center;
    margin-top: 80px
}


/*Modal popup*/
.modal {
    display: none;
    position: fixed;
    z-index: 99;
    padding-top: 48px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--alt-grey-t);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: var(--page-width);
    max-height: 85vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
}

.close {
    position: absolute;
    top: 16px;
    right: 35px;
    color: var(--bg-primary);
    font-size: 40px;
    font-weight: 600;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/*Carousel*/
.slide{
    display: none;
}

.slide-img{
    width: 100%;
    height: 500px;
    object-fit: cover;
    vertical-align: middle;
}

.fade{
    animation-name: fade;
    animation-duration: 1.5s;
}

.slideshow-dots{
    text-align: center;
}

.btn-prev,
.btn-next{
    background-color: var(--alt-grey);

    border: none;
    outline: none;

    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -24px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.4s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    

    font-family: inherit;
    line-height: 1;
}

.btn-next{
    right: 0;
     border-radius: 4px 0 0 4px
}

.btn-next:hover,
.btn-prev:hover{
    background-color: var(--accent);
}

.dot{
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    display: inline-block;
    background-color: #bbb;
    border-radius: 50%;
}

@keyframes fade {
    from {opacity: .6} 
    to {opacity: 1}
}