header {
    margin: 75px auto;
    max-width: 1200px;
    width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 5vw;
}

.mobile-banner img {
    width: 100%;
    border-radius: 50px;
    height: 50vh;
    object-fit: cover;
}

.content {
    flex: 45%;
}
.content h1, h2, h3 {
    margin: 0px;
}
.content p.subtitle {
    margin: 0px;
    color: var(--tertiary-text);
}

.rating-short {
    margin: 25px 0px;
}
.rating-short h2 {
    display: inline-flex;
    align-items: center;
}
.rating-short a {
    display: inline-block;
    color: var(--tertiary-text);
    font-size: 14px;
}
.rating-short iconify-icon {
    font-size: 30px;
}

.prompt-review {
    padding: 25px;
    border: 2px solid var(--tertiary-bg);
    border-radius: 50px;
    height: 75px;
    cursor: pointer;
    max-width: 400px;
    position: relative;
    transition: .3s;
    margin: 35px 0px;
}
.prompt-review:hover {
    border-color: var(--primary);
}

.prompt-review b {
    color: var(--tertiary-text);
    position: absolute;
    top: 25px; 
    left: 25px;
    transition: .3s;
}
.prompt-review:hover b {
    left: 85px;
    text-align: right;
    color: var(--primary-text);
}

.prompt-review .icon {
    height: 75px;
    width: 75px;
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: var(--tertiary-bg);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--tertiary-text);
    transition: .3s;
}
.prompt-review:hover .icon {
    right: calc(100% - 74px);
    background-color: var(--primary);
    color: var(--secondary);
}

.carousel {
    position: relative;
    height: 50vh;
}

.carousel .close {
    position: absolute;
    top: -12.5px;
    right: -12.5px;
    color: var(--secondary-text);
    z-index: 1;
    font-size: 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    height: 30px;
    line-height: 32px;
    width: 40px;
    text-align: center;
    border-radius: 10px;
}

.modal-section img {
    position: absolute;
    margin: -25px -25px -25px -12.5px;
    width: calc(100% + 37.5px);
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: 1s;
}
.modal-section img.active {
    opacity: 1;
}

.modal-pages {
    display: flex;
    overflow: hidden;
}

.modal-page {
    display: flex;
    flex-direction: column;
    gap: 12.5px;
    transition: .3s;
    height: 100%;
    min-width: 100%;
}

.page-1 .modal-page {
    transform: translateX(-100%);
}

.page-2 .modal-page {
    transform: translateX(-200%);
}

.page-3 .modal-page {
    transform: translateX(-300%);
}

.option {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}
.first-option {
    margin-top: auto;
}

.option p {
    margin: 0;
    color: var(--tertiary-text);
    font-size: 14px;
}

.option iconify-icon {
    padding: 5px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    background: var(--secondary-bg);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

.option:hover iconify-icon {
    background: var(--primary);
    color: var(--secondary);
}

.stars {
    display: flex;
    justify-content: center;
}

.stars iconify-icon {
    font-size: 50px;
    color: var(--tertiary-bg);
    transition: .3s;
    cursor: pointer;
}

.stars iconify-icon.active {
    color: var(--primary);
}

.modal-page textarea {
    flex: 1;
    font-size: 14px;
}

.thank-you {
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
}

.tags {
    display: flex;
    gap: 5px;
    margin: 35px 0px;
}
.tag {
    text-align: center;
    font-size: 12px;
    width: 80px;
    color: var(--tertiary-text);
}

.tag iconify-icon {
    display: block;
    margin: 0 auto;
    width: 40px;
    font-size: 40px;
    color: var(--primary-text);
}

.content p {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery {
    flex: 55%;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    gap: 15px;
}

.primary {
    grid-column: 1 / -1;
}

.secondary {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.primary, .secondary {
    overflow: hidden;
    position: relative;
    border-radius: 50px;
}

.primary img, 
.secondary img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

.secondary span {
    position: absolute;
    z-index: 1;
    padding: 2px 10px;
    border-radius: 50px;
    bottom: 15px;
    right: 25px;
    background-color: var(--primary-bg);
    cursor: pointer;
}

.add-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--tertiary-bg);
    color: var(--tertiary-text);
    cursor: pointer;
}

.credibility {
    display: flex;
    flex-direction: column;
    gap: 5vw;
}

.ratings {
    display: flex;
    gap: 5vw;
    flex: 1;
}

.ratings .average {
    text-align: center;
    font-size: 20px;
    align-self: center;
}

.ratings .individual {
    flex: 1;
}

.ratings .rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ratings span {
    width: 25px;
}

.ratings .bar,
.ratings .progress {
    position: relative;
    background-color: var(--tertiary-bg);
    width: calc(100% - 10px);
    height: 4px;
    border-radius: 50px;
}
.ratings .progress {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary);
}

.author {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
}
.credibility .author {
    border-radius: 15px;
    border: 2px solid var(--tertiary-bg);
    padding: 25px;
}

.author img {
    height: 50px;
    border-radius: 50px;
}

.author .meta {
    flex: 1;
}

.author h3,
.author p {
    margin: 0px;
}
.author p {
    color: var(--tertiary-text);
}

.author .stats {
    display: flex;
    width: calc(100% + 50px);
    margin: 0px -25px -12.5px -25px;
    padding-top: 12.5px;
    border-top: 2px solid var(--tertiary-bg);
}

.author .stats div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    column-gap: 5vw;
    row-gap: 5vh;
}

.review .details {
    margin: 10px 0px 5px 0px;
    font-size: 14px;
}

.review .details iconify-icon {
    font-size: 10px;
}

.review p {
    margin: 0px;
}

.map-container {
    height: 60vh;
    border-radius: 15px;
}

.images {
    position: fixed;
    z-index: 10005;
    width: 100vw;
    height: 100vh;
    left: 0px;
    bottom: -100%;
    background-color: var(--primary-bg);
    overflow-y: scroll;
    transition: .3s bottom;
}
.images.active {
    bottom: 0px;
}
.images iconify-icon {
    position: fixed;
    top: 25px;
    left: 25px;
    pointer-events: none;
    opacity: 0;
    transition: .3s;
    cursor: pointer;
    font-size: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary-bg);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.images.active iconify-icon {
    opacity: 1;
    pointer-events: all;
}

.images-wrapper {
    margin: 50px auto;
    padding: 5vw;
    max-width: 800px;
}
.images-wrapper img {
    width: 100%;
    border-radius: 15px;
}

.edit-action {
    display: none;
}

@media (min-width: 640px) {
    header {
        margin: 150px auto;
    }

    .author {
        flex-wrap: nowrap;
    }

    .author .stats {
        position: absolute;
        right: 0;
        top: 0;
        flex-direction: column;
        width: unset;
        margin: 0;
        border-top: unset;
        padding-top: 0;
        height: 100%;
        border-left: 2px solid var(--tertiary-bg);
    }

    .author .stats div {
        padding: 0px 20px;
        justify-content: left;
    }

    .author .stats div:not(:last-child) {
        border-bottom: 2px solid var(--tertiary-bg);
    }
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        height: 100vh;
    }

    .mobile-banner {
        display: none;
    }

    .credibility {
        flex-direction: row;
    }
}
