/* =========================
   DASHBOARD LAYOUT
========================= */

.dashboard {
    display: grid;

    grid-template-columns:
        minmax(320px, 505px)
        minmax(240px, 265px);

    justify-content: center;
    align-items: start;

    gap: clamp(30px, 5vw, 85px);

    padding: 50px 35px;
}


/* =========================
   PHOTOGRAPHY POST
========================= */

.feed {
    width: 100%;
    min-width: 0;
}

.post-card {
    overflow: hidden;

    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
}


/* Post Header */

.post-header {
    min-height: 65px;
    padding: 12px;

    display: flex;
    align-items: center;
    gap: 11px;
}

.avatar {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

    border-radius: 50%;
    background-color: #e7e5e3;

    position: relative;
    overflow: hidden;
}

.avatar::before,
.avatar::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 140%;
    height: 1px;

    background-color: #bdb8b3;
}

.avatar::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.avatar::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.post-user h3 {
    font-size: 12px;
    margin-bottom: 4px;
}

.post-user p {
    font-size: 11px;
    color: var(--grey);
}

.more-button {
    margin-left: auto;

    background: none;
    border: none;

    font-size: 22px;
}


/* Main Image Placeholder */

.post-image {
    width: 100%;
    aspect-ratio: 5 / 6;

    position: relative;

    background-color: #e7e5e3;

    overflow: hidden;
}

.post-image::before,
.post-image::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 150%;
    height: 1px;

    background-color: #bdb8b3;
}

.post-image::before {
    transform: translate(-50%, -50%) rotate(50deg);
}

.post-image::after {
    transform: translate(-50%, -50%) rotate(-50deg);
}

.image-counter {
    position: absolute;
    top: 14px;
    right: 14px;

    padding: 6px 10px;

    background-color: #625f5d;
    color: white;

    border-radius: 20px;

    font-size: 11px;

    z-index: 1;
}


/* Post Caption */

.post-caption {
    min-height: 65px;
    padding: 13px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.post-caption p {
    font-size: 12px;
    line-height: 1.6;
}

.post-caption strong {
    margin-right: 4px;
}

.save-button {
    align-self: flex-start;

    background: none;
    border: none;

    font-size: 22px;
}


/* =========================
   RIGHT PANEL
========================= */

.right-panel {
    width: 100%;
    min-width: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: normal;
}

.section-heading a {
    font-size: 11px;
    text-decoration: underline;
    font-weight: bold;
}


/* Photographer Recommendations */

.photographer {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;
}

.small-avatar {
    width: 39px;
    height: 39px;
}

.photographer-info {
    min-width: 0;
    flex: 1;
}

.photographer-info h3 {
    font-size: 11px;
    margin-bottom: 4px;
}

.photographer-info p {
    font-size: 10px;
    color: var(--grey);
}

.book-button {
    flex-shrink: 0;

    padding: 7px 12px;

    border: 1px solid #ddd8d4;
    border-radius: 20px;

    background-color: transparent;

    font-size: 10px;
    font-weight: bold;
}

.book-button:hover {
    background-color: var(--black);
    color: white;
}


/* =========================
   UPCOMING SHOOT CARD
========================= */

.upcoming-shoot {
    margin-top: 30px;
    padding: 18px;

    background-color: var(--black);
    color: var(--white);

    border-radius: 14px;
}

.shoot-label {
    display: inline-block;

    padding: 6px 11px;

    background-color: #383432;
    border-radius: 20px;

    font-size: 9px;
    font-weight: bold;
}

.shoot-date {
    margin-top: 27px;
    margin-bottom: 9px;

    color: #aaa39d;

    font-size: 10px;
    letter-spacing: 0.5px;
}

.upcoming-shoot h2 {
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: normal;
}

.shoot-location {
    margin-top: 10px;

    color: #aaa39d;
    font-size: 11px;
}

.upcoming-shoot hr {
    margin: 20px 0 14px;

    border: none;
    border-top: 1px solid #45413e;
}

.shoot-link {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 12px;
    font-weight: bold;
}

.shoot-link span {
    font-size: 22px;
}


/* =========================
   CREATE POST DIALOG
========================= */

#createPostDialog {
    width: min(90%, 450px);

    margin: auto;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background-color: var(--background);
    color: var(--black);
}

#createPostDialog::backdrop {
    background-color: rgb(0 0 0 / 45%);
}

.post-form h2 {
    font-family: Georgia, serif;
    font-weight: normal;

    margin-bottom: 22px;
}

.post-form label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: bold;
}

.post-form textarea {
    width: 100%;
    min-height: 120px;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    resize: vertical;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 18px;
}

.dialog-actions button {
    padding: 10px 15px;

    border: none;
    border-radius: 8px;

    background-color: #eae7e4;
}

.dialog-actions button:last-child {
    background-color: var(--lime);
}


/* =========================
   SMALLER SCREENS
========================= */

@media (max-width: 1050px) {

    .dashboard {
        grid-template-columns: minmax(300px, 505px) minmax(220px, 265px);
        gap: 25px;

        padding: 35px 20px;
    }
}

@media (max-width: 760px) {

    .dashboard {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;

        max-width: 540px;
        margin: 0 auto;

        padding: 25px 15px;
    }

    .right-panel {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .upcoming-shoot {
        margin-top: 10px;
    }
}
.save-button.saved {
    color: #3578ff;
}
/* PHOTO UPLOAD */

.post-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.post-category {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 20px;
    background: #e6faff;
    color: #31596a;
    font-size: 10px;
    text-transform: capitalize;
}

.photo-preview {
    width: 100%;
    min-height: 180px;
    margin: 10px 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: #f8f7f5;
    color: var(--grey);
    font-size: 12px;
}

.photo-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.upload-description {
    color: var(--grey);
    font-size: 12px;
    margin: 8px 0 18px;
}

.post-form input[type="file"],
.post-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 12px;
}

.post-form label {
    display: block;
    margin: 14px 0 7px;
    font-size: 12px;
    font-weight: bold;
}

#postFeedback {
    font-size: 12px;
    color: #a34b43;
    margin-top: 10px;
}