/* Main */
#destinationMain {
    padding: 80px 0;
}

#destinationMain .gridContainer {
    row-gap: 40px;
    grid-template-rows: auto 1fr;
}

@media (min-width: 768px) {
    #destinationMain .gridContainer {
        grid-template-rows: auto 1fr;
    }

    #destinationImage {
        grid-area: 1 / 7 / 2 / 13;
    }

    #destinationInfo {
        grid-area: 1 / 1 / 3 / 7;
    }

    #destinationCards {
        grid-area: 2 / 7 / 3 / 13;
    }
}

/* Image */
#destinationImage img {
    border-radius: 10px;
    width: 100%;
}

/* Cards */
#destinationCards .card + .card {
    margin-top: 20px;
}

#destinationCards .card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#destinationCards .card h2 {
    margin-bottom: 5px;
}

#destinationCards .cardAuthor {
    display: flex;
    align-items: center;
    gap: 10px;
}

#destinationCards .cardAuthor img {
    height: 40px;
    aspect-ratio: 1/1;
    border-radius: 100%;
}

#destinationCards header > p {
    text-transform: uppercase;
    opacity: 50%;
    font-size: 0.75em;
}

#destinationCards address {
    line-height: 1.5em;
}

/* Call to action */
#destinationCallToAction {
    padding: 20px 0;
    background-color: var(--secondary);
    color: var(--primary);
}

#destinationCallToAction h2 {
    margin-bottom: 10px;
}

#destinationCallToAction a,
#destinationCallToAction a:visited {
    color: var(--primary);
}

/* Articles */
#destinationInfo p {
    margin-top: 20px;
}

#destinationInfo header p {
    margin-top: 10px;
    opacity: 50%;
}

#destinationInfo h3 {
    margin-top: 40px;
}

#destinationImagePreview {
    display: none;
}

#destinationImagePreview.active {
    display: grid;
    place-items: center;
    position: fixed;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

#destinationImagePreview .imageContainer {
    max-width: min(90%, 1000px);
    position: relative;
}

#destinationImagePreview .imageContainer img {
    border-radius: 10px;
    width: 100%;
}

#destinationImagePreview .button {
    border: none;
    position: absolute;
    background-color: var(--background);
    color: var(--text);
    top: 0;
    right: 0;
    margin: 20px;
}

#destinationImage [onclick] {
    cursor: pointer;
}
