/*  MEDIA QUERIES */
@media (min-width:1281px) and (max-width:1440px) {

    .calendar {
        min-width: 280px;
        background-color: #464646;
        color: white;
        font-family: sans-serif;
        border-radius: 12px;
        padding: 16px;
        box-sizing: border-box;
        height: fit-content;
    }

    .card {
        background: #fff;
        border: 1px solid #DCDCDC;
        border-radius: 10px;
        padding: 16px;
        width: 30%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        font-family: monospace;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .calendar-image-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        flex-wrap: wrap;
    }

    .calendar {
        flex: 1;
        min-width: 0;
        max-width: 28%;
    }

    .image-section {
        flex: 1;
        max-width: fit-content;
        overflow: hidden;
        border-radius: 10px;
    }

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 54% center;
        border-radius: 10px;
    }

    .hashtag-dropdown {
        position: relative;
        display: inline-block;
        padding-left: 32px;
    }

    .event-right-detail {
        max-width: 70%;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
    }

}

@media (min-width:1025px) and (max-width:1280px) {
    .calendar {
        min-width: 280px;
        background-color: #464646;
        color: white;
        font-family: sans-serif;
        border-radius: 12px;
        padding: 16px;
        box-sizing: border-box;
        height: fit-content;
    }

    .card {
        background: #fff;
        border: 1px solid #DCDCDC;
        border-radius: 10px;
        padding: 16px;
        width: 30%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        font-family: monospace;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .calendar-image-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        flex-wrap: wrap;
    }

    .calendar {
        flex: 1;
        min-width: 0;
        max-width: 28%;
    }

    .image-section {
        flex: 1;
        max-width: fit-content;
        overflow: hidden;
        border-radius: 10px;
    }

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 54% center;
        border-radius: 10px;
    }

    .hashtag-dropdown {
        position: relative;
        display: inline-block;
        padding-left: 32px;
    }

    .event-right-detail {
        max-width: 70%;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
    }

}

@media (min-width:901px) and (max-width:1024px) {
    .calendar {
        min-width: 280px;
        background-color: #464646;
        color: white;
        font-family: sans-serif;
        border-radius: 12px;
        padding: 16px;
        box-sizing: border-box;
        height: fit-content;
    }

    .calendar-image-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        flex-wrap: wrap;
    }

    .card {
        background: #fff;
        border: 1px solid #DCDCDC;
        border-radius: 10px;
        padding: 16px;
        width: 48%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        font-family: monospace;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .calendar {
        flex: 1;
        min-width: 0;
        max-width: 38%;
    }

    .image-section {
        flex: 1;
        max-width: fit-content;
        overflow: hidden;
        border-radius: 10px;
    }

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 54% center;
        border-radius: 10px;
    }

    .hashtag-dropdown {
        position: relative;
        display: inline-block;
        padding-left: 32px;
    }

    .event-right-detail {
        max-width: 70%;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
    }

}

@media (min-width:601px) and (max-width:900px) {

    /* toggle button */
    .light-page .toggle-btn {
        color: black;
    }

    .calendar {
        min-width: 280px;
        background-color: #464646;
        color: white;
        font-family: sans-serif;
        border-radius: 12px;
        padding: 16px;
        box-sizing: border-box;
        height: fit-content;
    }

    .card {
        background: #fff;
        border: 1px solid #DCDCDC;
        border-radius: 10px;
        padding: 16px;
        width: 48%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        font-family: monospace;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        padding: 30px;
    }

    .calendar-image-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        flex-wrap: wrap;
    }

    .calendar {
        flex: 1;
        min-width: 0;
        max-width: 48%;
    }

    .image-section {
        flex: 1;
        max-width: 38%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
    }

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 54% center;
        border-radius: 10px;
    }

    .hashtag-dropdown {
        position: relative;
        display: inline-block;
        padding-left: 32px;
    }

    .other-events-section {
        display: none;
    }

    .event-right-detail {
        max-width: 100%;
    }

    .card:hover {
        transform: none;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
    }
}

@media (min-width:481px) and (max-width:600px) {

    /* toggle button */
    .light-page .toggle-btn {
        color: black;
    }

    .calendar-image-wrapper {
        display: flex;
        gap: 10px;
        padding: 15px;
        align-content: center;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
    }

    .calendar {
        min-width: 315px;
        background-color: #464646;
        color: white;
        font-family: sans-serif;
        border-radius: 12px;
        padding: 16px;
        box-sizing: border-box;
        height: fit-content;
    }

    .card {
        background: #fff;
        border: 1px solid #DCDCDC;
        border-radius: 10px;
        padding: 16px;
        width: 80%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        font-family: monospace;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .calendar-image-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        flex-wrap: wrap;
        flex-direction: column;
    }


    .image-section {
        flex: 1;
        max-width: 80%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
    }

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 54% center;
        border-radius: 10px;
    }

    .hashtag-dropdown {
        position: relative;
        display: inline-block;
        padding-left: 32px;
    }

    .other-events-section {
        display: none;
    }

    .event-right-detail {
        max-width: 100%;
    }

    .card:hover {
        transform: none;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
    }

    .event-detail h1 {
        font-size: 28px;
        margin-bottom: 10px;
        color: #1e293b;
    }

}

@media (min-width:426px) and (max-width:480px) {

    /* toggle button */
    .light-page .toggle-btn {
        color: black;
    }

    .calendar-image-wrapper {
        display: flex;
        gap: 10px;
        padding: 15px;
        align-content: center;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
    }

    .calendar {
        min-width: 315px;
        background-color: #464646;
        color: white;
        font-family: sans-serif;
        border-radius: 12px;
        padding: 16px;
        box-sizing: border-box;
        height: fit-content;
    }

    .card {
        background: #fff;
        border: 1px solid #DCDCDC;
        border-radius: 10px;
        padding: 16px;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        font-family: monospace;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .calendar-image-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        flex-wrap: wrap;
        flex-direction: column;
    }


    .image-section {
        flex: 1;
        max-width: 80%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
    }

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 54% center;
        border-radius: 10px;
    }

    .hashtag-dropdown {
        position: relative;
        display: inline-block;
        padding-left: 32px;
    }

    .other-events-section {
        display: none;
    }

    .event-right-detail {
        max-width: 100%;
    }

    .event-detail h1 {
        font-size: 26px;
        margin-bottom: 10px;
        color: #1e293b;
    }

    .card:hover {
        transform: none;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
    }
}

@media (max-width:425px) {

    /* toggle button */
    .light-page .toggle-btn {
        color: black;
    }

    /* calendar */
    .calendar-image-wrapper {
        display: flex;
        gap: 10px;
        padding: 15px;
        align-content: center;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
    }

    .calendar {
        min-width: 238px;
        background-color: #464646;
        color: white;
        font-family: sans-serif;
        border-radius: 12px;
        padding: 16px;
        box-sizing: border-box;
        height: fit-content;
    }

    /*  Image */
    .image-section {
        flex: 1;
        max-width: 90%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
    }

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 57% center;
        border-radius: 10px;
    }

    /*  Hashtags */
    .hashtag-dropdown {
        position: relative;
        display: inline-block;
        display: flex;
        justify-content: center;
        padding-left: 1px;
    }

    .other-events-section {
        display: none;
    }

    .event-right-detail {
        max-width: 100%;
    }

    .event-detail h1 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #1e293b;
    }

    .event-meta {
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 25px;
    }

    .event-body p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 18px;
        color: #374151;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 0px;
    }

    .card {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        width: 100%;
    }

    .card:hover {
        transform: none;
    }
}