html {
    scroll-behavior: smooth;
    background-color: #000;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Open Sans Condensed', sans-serif;
}

a {
    color: #fff;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    font-size: 18px;
    font-weight: 300;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 20px 40px;
    background-color: #000;
    margin-bottom: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header span {
    font-weight: 300;
}


.gallery {
    width: 100%;
    margin: 0 auto;
    padding: 0 0px;
}

.row {
    display: flex;
    width: 100%;
    height: 300px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    gap: 5px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.image-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity:0;
    transition: opacity .5s ease;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.image-container img.active {
    opacity: 1;
    z-index: 1;
}

.image-container img.fade-in {
    opacity: 0;
    z-index: 2;
    transition: opacity 1.5s ease-in-out;
}

.row::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.row:hover::after,
.row.on::after {
    opacity: 0.7;
}

.row::before {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%) translateY(10px);
    color: white;
    font-size: 31px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
    z-index: 15;
    pointer-events: none;
}

.row:hover::before,
.row.on::before {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0px);
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    margin-top: 20px;
    background-color: #000;
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    margin: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-content iframe {
    width: 100%;
    max-height: 100%;
    border: none;
    border-radius: 8px;
    background-color: #000;
    aspect-ratio: 16/9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        margin: 20px;
    }
    
    .close-button {
        top: -5px;
        right: -5px;
        width: 35px;
        height: 35px;
    }
}

/* Contact Page Styles */
.contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.contact li {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact a svg {
    width: 17px;
    height: 17px;
}

.contactImages {
	width:100%;
	height: 20vw;
    max-height: 270px;
	background-image:url("/_media/images/contact/1.jpg");
	transition: background-image 1s ease-in-out .5s;
	background-size:cover;
	background-repeat:no-repeat;
    background-position: center;
}

.gsktalent {
    display: flex;
    width: 100%;
    height: 8vw;
    margin-bottom: 20px;
    max-width: 340px;
    max-height: 100px;
    justify-content: flex-start;
    align-items: center;
}

.gsktalent svg {
    height: 100%;
}

.contact li:last-child {
    padding: 40px;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

.contact li:last-child p {
    margin: 20px 0;
}

.block_link {
    display: block;
    color: #fff;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    transition: color 0.3s ease;
}

.block_link:hover {
    color: #ccc;
}

.contact a {
    color: #fff;
    text-decoration: none;
}

.contact a:hover {
    color: #ccc;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact {
        flex-direction: column;
    }
    
    .contactImages {
        min-height: 10vh;
    }
    
}

/* Mobile styles */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        gap: 10px;
        font-size:18px;
        text-align: left;
    }
    .nav {
        font-size: 16px;
    }
    .close-button,
    .close-button svg {
        width: 40px !important;
        height: 40px !important;
    }
    .row {
        position:relative;
        height: 120px;
    }
    .row::before {
        /* opacity: 1 !important; */
        font-size:18px !important;
        white-space: nowrap !important;
        background-color: #00000090 !important;
        padding: 10px 32px !important;
        border-radius: 10px !important;
        backdrop-filter: blur(10px) !important;
        margin-top:35px !important;
        /* left: 20% !important;
        width: 100% !important;
        text-align: left !important; */
    }
    .contact {
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
    }

    .contact li {
        width: 100% !important;
        font-size: 16px !important;
        padding: 0 !important;
    }

    .contactImages {
        height: 20vh !important;
    }

    .gsktalent {
        max-width: 100% !important;
        justify-content: center !important;
        height:15vw !important;
        max-height: none !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    .contact div {
        text-align: center !important;
    }
    .contact a {
        display: block !important;
    }

    .contact a svg {
        width: 15px !important;
        height: 15px !important;
        margin-left: 5px !important;
    }

    .contact .block_link {
        margin-top: 0px !important;
    }
}