/* Modal Fullscreen */
.modal-fullscreen {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.modal-fullscreen .modal-content {
    border-radius: 0;
    height: 100vh;
}

.modal-fullscreen .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

/* Group Image */
.group-img {
    height: 104px;
}

/* Mobile Media Query */
@media (max-width: 767px) {
    /* Stack image and text vertically */
    .section__o-media-sub {
        flex-direction: column;
    }

    .o-media__item figure {
        height: auto !important;
        margin: 0;
        background-color: transparent;
    }

    .o-media__item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .o-media__body {
        padding: 1rem;
        margin-left: 0;
    }

    .meta__category {
        font-size: 1rem;
        color: #fcb814;
        margin-bottom: 0.5rem;
        word-break: break-word;
    }

    .hgroup__title,
    h2.title {
        font-size: 1.25rem;
        line-height: 1.3;
        word-break: break-word;
        margin-bottom: 1rem;
    }

    .o-media__text p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #fff;
        text-align: left;
        margin-bottom: 1rem;
    }

    .section__wrapper {
        padding: 1rem;
        margin-bottom: 2rem;
    }
}

/* Responsive Grid for View Content */
.view-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 0;
}

.view-content .o-tile {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 1rem);
    transition: transform 0.3s ease;
    padding: 1rem;
}

.view-content .o-tile:hover {
    transform: translateY(-5px);
}

.o-tile__title a {
    color: #0060a0;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.o-tile__title a:hover {
    color: #fcb814;
}

/* Tablet */
@media (max-width: 1024px) {
    .view-content .o-tile {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .view-content {
        flex-direction: column;
    }

    .view-content .o-tile {
        flex: 1 1 100%;
    }

    .o-tile__title a {
        font-size: 1.1rem;
    }
}
