/* Responsive design for mobile 6-7 inch (max-width: 900px) */
@media (max-width: 900px) {
    body {
        font-size: 1em;
        padding: 0 4px;
    }

    .header {
        align-items: center;
        text-align: center;
        padding: 10px 0;

    }

    .header-logo {
        width: 70px !important;
        margin: 0 auto 8px auto !important;
        display: block;
    }

    .header h1 {
        font-size: 1.1em !important;
        margin: 0 !important;

    }

    .main-content {
        padding-top: 10px;

    }

    .gallery {
        flex-direction: row;
        gap: 5px;
        align-items: center;
        max-width: 100%;
        border-radius: 6px;

    }

    .item {
        width: 98vw;
        min-width: unset;
        max-width: 99vw;
        margin: 10px auto;
        border-radius: 5px;
        padding: 8px 0;
        align-items: center;
        justify-items: center;
    }

    .item-img {
        width: 100%;
        min-width: 90px;
        max-width: 90px;
        height: 100%;
        max-height: 80px;
        min-height: 80px;
        border-radius: 5px;
        align-items: center;
    }

    .item-title {
        font-size: 1em;
        margin-bottom: 6px;
    }

    .footer1,
    .footer2,
    .footer3 {
        font-size: 0.98em;
        padding: 10px 2vw;
    }

    .modal-magnifier img {
        max-width: 95vw;
        max-height: 60vh;
    }

    .modal-magnifier .close-magnifier {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }
}

@media (max-width: 500px) {
    .header h1 {
        font-size: 1em !important;
        white-space: normal;
        /* agar bisa wrap */
        overflow-wrap: break-word;
        /* agar kata panjang tetap wrap */
        word-break: break-word;
        /* agar kata panjang tetap wrap */
        text-align: center;
        flex-grow: 1;
    }

    .item-img {
        width: 96vw;
        max-width: 99vw;
        height: 38vw;
        max-height: 160px;
    }

    .item {
        padding: 4px 0;
        border-radius: 10px;

    }

    .footer1,
    .footer2,
    .footer3 {
        font-size: 0.95em;
        padding: 8px 1vw;
    }
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: #fff;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    animation: fadeInBody 1.2s cubic-bezier(.39, .575, .56, 1.000);
}

@keyframes fadeInBody {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.main-content {
    padding-top: 15px;
}

.header {
    background: linear-gradient(90deg, #ffffff 0%, #ff0000d9 30%);
    color: white;
    min-height: 70px;
    padding: 15px 0;
    text-align: center;
    font-weight: bold;
    border-bottom-color: #fff;
    border-bottom-width: 3px;
    border-bottom-style: solid;
    margin-bottom: 0px;
    display: flow-root;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-clip: padding-box;
    box-shadow: 0 2px 16px rgba(255, 106, 0, 0.18);
    animation: fadeInDown 0.9s cubic-bezier(.39, .575, .56, 1.000);
    transition: background 0.5s, box-shadow 0.4s;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header2 {
    background: linear-gradient(90deg, #ff0000d9 100%, #ff0000d9 30%);
    animation: fadeInDown 1.1s cubic-bezier(.39, .575, .56, 1.000);
    transition: background 0.5s;
    color: white;
    font-size: 0.8em;
    text-align: center;
    border-top-style: solid;
    border-top-width: 3px;
    border-top-color: #fff;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    position: center;
    align-items: center;
    top: 141px;
    left: 0;
    width: 100%;
    height: 25px;
    z-index: 1000;

}

.header h1 {
    white-space: inherit;
    /* agar bisa wrap */
    overflow-wrap: break-word;
    /* agar kata panjang tetap wrap */
    word-break: break-word;
    /* agar kata panjang tetap wrap */

    flex-grow: 1;

}

.header-logo {
    width: 100px;
    height: auto;
    padding-left: 20px;

}

.instagram-link {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
}

.instagram-logo {
    width: 100%;
    height: 100%;
    fill: white;
}

.note {
    background-color: #ff0000d9;
    border: 1px solid rgb(255, 255, 255);
    color: white;
    padding: 0px;
    text-align: center;
    border-radius: 10px;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    margin-bottom: 10px;
    font-size: 0.5em;
    max-width: 450px;
    max-height: 170px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto 24px auto;
    width: 100%;
    gap: 1px;
}

.note h2 {
    margin: 1px;
}

.gallery {
    background-color: rgba(255, 255, 255, 0.30);
    box-shadow: 0 5px 50px rgb(255, 0, 0);
    width: 90%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5px;
    margin-top: 5px;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: inherit;
    max-height: inherit;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.30);
    box-shadow: 0 5px 50px rgba(255, 0, 0, 0.18);
    backdrop-filter: blur(6px) saturate(120%);
    transition: box-shadow 0.4s, background 0.4s;
}

.item {

    width: 220px;
    min-width: 130px;
    max-width: 130px;
    min-height: 220px;
    max-height: 220px;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 2px;
    margin-top: 2px;
    margin-left: 2px;
    margin-right: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 18px 0 rgba(255, 0, 0, 0.18), 0 2px 8px 0 rgba(255, 0, 0, 0.10);
    border: 3px solid #f44336;
}

.item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px 0 rgba(255, 106, 0, 0.18);
    background: rgba(255, 255, 255, 1);
}

.item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    background: #f5f5f5;
}

.item-img:hover {
    transform: scale(2.05);
    box-shadow: 0 5px 15px rgb(255, 0, 0);
    z-index: 1;
}

.item-title {
    margin-top: 0.5px;
    font-weight: bold;
    font-size: 1em;
    color: #222;
    text-align: center;
    display: block;
    width: 100%;
    word-break: break-word;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1px;
}

.item-desc {
    font-size: 0.75em;
}

/* Separator for gallery item */
.item-separator {
    margin: 6px 0;
    border: 0;
    border-top: 1.5px solid #da190b;
    width: 80%;
    align-self: center;
}

@media (max-width: 1000px) {
    .item {
        flex: 0 0 48%;
    }
}

@media (max-width: 600px) {
    .item {
        flex: 0 0 98%;
    }
}

.footer1 {
    margin-top: 1px;
    background: linear-gradient(90deg, #ffffff 0%, #ff0000d9 30%);
    animation: fadeInUp 1.2s cubic-bezier(.39, .575, .56, 1.000);
    transition: background 0.5s;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: normal;
    border-top-style: solid;
    border-top-width: 3px;
    border-top-color: #fff;

}

.footer-container {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 0px;
}

.footer2 {
    background: linear-gradient(90deg, #ff0000d9 100%, #ff0000d9 100%);
    transition: background 0.5s;
    color: rgb(255, 255, 255);
    text-align: left;
    padding: 15px;
    font-weight: normal;
    flex: 1;
}

.footer2 a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer2 a:hover {
    text-decoration: underline;
}

.alamatkantor,
.telp-whatsapp,
.mediasocial {
    font-weight: bold;
    color: #ffffff;
}

.footer3 {
    background: linear-gradient(90deg, #ff0000d9 0%, #ff0000d9 100%);
    transition: background 0.5s;
    color: rgb(255, 255, 255);
    text-align: left;
    padding: 15px;
    font-weight: normal;
    flex: 1;
}

.footer3 a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}



.footer3 a:hover {
    text-decoration: underline;
}

.instagram-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.tiktok-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.googlemaps-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}

/* Modal magnifier */
.modal-magnifier {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    border-radius: 100px;
}

.modal-magnifier.active {
    display: flex;
    animation: zoomInModal 0.5s cubic-bezier(.39, .575, .56, 1.000);
    border-radius: 30px;
}

@keyframes zoomInModal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-magnifier img {
    max-width: 75vw;
    max-height: 75vh;
    border-radius: 30px;
    box-shadow: 0 0 20px red;
    background: #fff;
}

.modal-magnifier .close-magnifier {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 0 0 10px #000;
}