/* IRETURA PHOTO INTERACTIONS — CMYK V1 */

.iretura-photo-interactions {
    margin-top: 12px;
    padding: 14px;
    color: #080808;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
}

.iretura-photo-interactions__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.iretura-photo-interactions__views {
    font-size: 13px;
    font-weight: 600;
}

.iretura-photo-interactions button {
    border: 1px solid #00A8E8;
    border-radius: 0;
    background: #00A8E8;
    color: #080808;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: none;
}

.iretura-photo-interactions button:hover {
    background: #EC008C;
    border-color: #EC008C;
    color: #ffffff;
}

.iretura-photo-interactions button:disabled {
    opacity: .6;
    cursor: wait;
}

.iretura-photo-interactions__body[hidden] {
    display: none !important;
}

.iretura-photo-interactions__body {
    margin-top: 14px;
    border-top: 2px solid #FFD500;
    padding-top: 14px;
    max-height: 45vh;
    overflow-y: auto;
}

.iretura-photo-interactions__comment {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.iretura-photo-interactions__comment p {
    margin: 5px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.iretura-photo-interactions__form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.iretura-photo-interactions__form label {
    display: grid;
    gap: 4px;
    font-size: 13px;
}

.iretura-photo-interactions__form input,
.iretura-photo-interactions__form textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px;
    color: #080808;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 0;
    box-shadow: none;
}

.iretura-photo-interactions__form textarea {
    min-height: 80px;
}

.iretura-photo-interactions__message {
    font-size: 13px;
    margin: 0;
}


/* IRETURA_PHOTO_REPLIES_G14G */
.iretura-photo-interactions__reply {
    margin: 12px 0 0 16px;
    padding: 10px 0 0 12px;
    border-left: 2px solid #d5d9df;
}
.iretura-photo-interactions__reply-button,
.iretura-photo-interactions__cancel-reply {
    cursor: pointer;
    border: 1px solid #d5d9df;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    padding: 5px 10px;
    font: inherit;
    font-size: 13px;
    box-shadow: none;
}
.iretura-photo-interactions__reply-context:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #d5d9df;
    border-radius: 8px;
}
.iretura-photo-interactions__reply-context[hidden] {
    display: none !important;
}
.iretura-photo-interactions__comment {
    overflow-wrap: anywhere;
}


/* IRETURA_PHOTO_SIDEBAR_G14L */

/* Desktop: photograph and discussion side by side. */
@media (min-width: 801px) {
    .iretura-drive-lightbox[open] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
        grid-template-rows: minmax(0, 1fr) auto;
        column-gap: 0;
        width: min(96vw, 1500px) !important;
        max-width: 1500px !important;
        height: 92vh !important;
        max-height: 92vh !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .iretura-drive-lightbox[open]
    > .iretura-drive-lightbox__stage {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        height: 100%;
        max-height: none;
        overflow: hidden;
    }

    .iretura-drive-lightbox[open]
    > .iretura-drive-lightbox__stage
    > .iretura-drive-lightbox__image {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .iretura-drive-lightbox[open]
    > .iretura-drive-lightbox__footer {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        margin: 0;
    }

    .iretura-drive-lightbox[open]
    > .iretura-photo-interactions {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        min-height: 0;
        min-width: 0;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        margin: 0;
        padding: 16px;
        border: 0;
        border-left: 1px solid #dedede;
        border-radius: 0;
        box-sizing: border-box;
    }

    .iretura-drive-lightbox[open]
    .iretura-photo-interactions__body:not([hidden]) {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Tablet and mobile: preserve the photograph and
   give comments their own accessible scrolling area. */
@media (max-width: 800px) {
    .iretura-drive-lightbox[open] {
        display: flex !important;
        flex-direction: column;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 0 !important;
        overflow-y: auto !important;
        box-sizing: border-box;
    }

    .iretura-drive-lightbox[open]
    > .iretura-drive-lightbox__stage {
        flex: 0 0 auto;
        height: min(55dvh, 520px);
        min-height: 0;
        max-height: 55dvh;
    }

    .iretura-drive-lightbox[open]
    > .iretura-drive-lightbox__stage
    > .iretura-drive-lightbox__image {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .iretura-drive-lightbox[open]
    > .iretura-drive-lightbox__footer {
        flex: 0 0 auto;
    }

    .iretura-drive-lightbox[open]
    > .iretura-photo-interactions {
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
        margin: 0;
        padding: 14px;
        border-radius: 0;
        box-sizing: border-box;
    }

    .iretura-drive-lightbox[open]
    .iretura-photo-interactions__body:not([hidden]) {
        max-height: 42dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Keep reply actions compact and styling flat. */
.iretura-photo-interactions__reply-button,
.iretura-photo-interactions__cancel-reply {
    border-radius: 6px;
    box-shadow: none;
}


/* IRETURA_G14M2B — flat collapsible sidebar and reactions */

.iretura-photo-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 12px;
    font-size: 13px;
}

.iretura-photo-toolbar__toggle {
    cursor: pointer;
    border: 1px solid #777;
    background: transparent;
    color: inherit;
    padding: 7px 12px;
    border-radius: 7px;
    box-shadow: none;
}

.iretura-photo-interactions__summary {
    display: none !important;
}

.iretura-photo-interactions__reactions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.iretura-photo-interactions__reaction {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #d5d5d5;
    background: transparent;
    color: #333;
    border-radius: 7px;
    padding: 5px 9px;
    cursor: pointer;
    box-shadow: none;
}

.iretura-photo-interactions__reaction[aria-pressed="true"] {
    border-color: #2463a6;
    background: #eaf3fc;
    color: #174c83;
}

.iretura-photo-interactions__reaction:disabled {
    opacity: .55;
    cursor: wait;
}

@media (min-width: 801px) {
    .iretura-drive-lightbox[open]:not(.iretura-photo-sidebar-open) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .iretura-drive-lightbox[open]:not(.iretura-photo-sidebar-open)
    > .iretura-photo-interactions {
        display: none !important;
    }

    .iretura-drive-lightbox[open].iretura-photo-sidebar-open
    > .iretura-photo-interactions {
        display: flex !important;
    }
}

@media (max-width: 800px) {
    .iretura-drive-lightbox[open]:not(.iretura-photo-sidebar-open)
    > .iretura-photo-interactions {
        display: none !important;
    }

    .iretura-drive-lightbox[open].iretura-photo-sidebar-open
    > .iretura-photo-interactions {
        display: flex !important;
    }
}


/* IRETURA_COMMENT_TEXT_VISIBILITY_G14N3 */

.iretura-drive-lightbox .iretura-photo-interactions__comment > p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #222222 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    height: auto !important;
    max-height: none !important;
    margin: 7px 0 10px !important;
}

.iretura-drive-lightbox .iretura-photo-interactions__comment > strong {
    color: #111111 !important;
}



/* IRETURA_COMMENT_CONTROLS_G14N4 */

/* Keep reaction buttons and Reply on one line. */
.iretura-drive-lightbox
.iretura-photo-interactions__comment > .iretura-photo-interactions__reactions {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    width: auto !important;
    max-width: 100%;
    margin: 8px 7px 8px 0 !important;
    vertical-align: middle;
}

.iretura-drive-lightbox
.iretura-photo-interactions__comment > .iretura-photo-interactions__reply-button {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle;
    white-space: nowrap;
    margin: 8px 0 !important;
}

/* Rounded, compact reaction and reply buttons. */
.iretura-drive-lightbox
.iretura-photo-interactions__reaction,
.iretura-drive-lightbox
.iretura-photo-interactions__reply-button,
.iretura-drive-lightbox
.iretura-photo-interactions__cancel-reply {
    border-radius: 9px !important;
    padding: 6px 9px !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}

/* Rounded name field and comment textarea. */
.iretura-drive-lightbox
.iretura-photo-interactions__form input,
.iretura-drive-lightbox
.iretura-photo-interactions__form textarea {
    border-radius: 10px !important;
    border: 1px solid #cbd0d6 !important;
    padding: 10px 12px !important;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none !important;
}

/* Rounded submit button. */
.iretura-drive-lightbox
.iretura-photo-interactions__form button[type="submit"] {
    border-radius: 10px !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
}

/* Rounded footer Comments control. */
.iretura-drive-lightbox
.iretura-photo-toolbar__toggle {
    border-radius: 9px !important;
    box-shadow: none !important;
}



/* IRETURA_REPLY_REPAIR_G14N5 */

.iretura-drive-lightbox
.iretura-photo-interactions__reply-context:not([hidden]) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    color: #222 !important;
    background: #f5f7fa !important;
    border: 1px solid #d5d9df !important;
    border-radius: 10px !important;
    padding: 10px !important;
}

.iretura-drive-lightbox
.iretura-photo-interactions__reply-context > span {
    display: inline-block !important;
    color: #222 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.iretura-drive-lightbox
.iretura-photo-interactions__form input,
.iretura-drive-lightbox
.iretura-photo-interactions__form textarea {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    background: #fff !important;
    color: #222 !important;
}

.iretura-drive-lightbox
.iretura-photo-interactions__form textarea:focus,
.iretura-drive-lightbox
.iretura-photo-interactions__form input:focus {
    outline: 2px solid #00a6df !important;
    outline-offset: 1px !important;
}



/* IRETURA_COMMENTER_UI_G14P4C */
.iretura-drive-lightbox .iretura-commenter-identity {
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #d9dfe5;
    border-radius: 12px;
    background: #f8fafc;
    color: #20252b;
    box-shadow: none;
}
.iretura-commenter-identity__verify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.iretura-commenter-identity__verify-form > input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cdd5dd;
    border-radius: 9px;
    background: #fff;
    color: #222;
}
.iretura-commenter-identity__avatar-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.iretura-commenter-identity__avatar-option input {
    width: auto;
}
.iretura-commenter-identity button {
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
}
.iretura-commenter-identity__feedback {
    margin: 0;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.iretura-commenter-identity__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}
.iretura-commenter-identity__summary > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.iretura-commenter-identity__summary small {
    color: #596575;
}
.iretura-commenter-identity__summary button {
    font-size: 12px;
}
.iretura-commenter-identity__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e4ebf2;
    color: #23364b;
    font-weight: 700;
    overflow: hidden;
}
.iretura-commenter-identity__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.iretura-drive-lightbox
.iretura-photo-interactions__form label[hidden] {
    display: none !important;
}


/* IRETURA_COMMENT_AVATARS_G14P6B */
.iretura-photo-interactions__author-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 5px;
}
.iretura-photo-interactions__author-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}
.iretura-photo-interactions__comment-avatar {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e4ebf2;
    color: #23364b;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
}
.iretura-photo-interactions__comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
