/* Look closer (Imd_ShopContent::library/look-closer.phtml; design-system/project/components/LookCloser): three frames
   of the same bag, place → bag → detail, then the words. The place is always shown in black and white. Frames are
   divided by hairline rules, never by circles or insets on a photograph. */
.imd-publication .look-closer{display:grid;grid-template-columns:1.1fr .8fr .8fr 1fr}
.imd-publication .look-closer>.photo+.photo,.imd-publication .look-closer>.copy{border-left:1px solid var(--rule)}
/* Each photograph fills its frame to the height of the row, so longer words never leave bare ground under a caption. */
.imd-publication .look-closer>.photo{display:flex;flex-direction:column}
.imd-publication .look-closer .photo img{display:block;width:100%;flex:1 1 0;min-height:520px;height:auto}
.imd-publication .look-closer>.photo:first-child img{filter:grayscale(1)}
.imd-publication .look-closer>.copy{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:30px}
.imd-publication .look-closer h2{margin:0 0 25px}
.imd-publication .look-closer .copy>p:where(:not(.kicker,.signed,.small-note)){margin:0 0 25px;max-width:430px}
.imd-publication .look-closer .copy p.signed{margin:0}
.imd-publication .look-closer .text-link{margin-top:25px}
.imd-publication .look-closer .small-note{margin:20px 0 0;line-height:1.5}

/* Below 1000px the words move under the three frames. */
@media(max-width:1000px){
.imd-publication .look-closer{grid-template-columns:repeat(3,1fr)}
.imd-publication .look-closer .photo img{min-height:380px}
.imd-publication .look-closer>.copy{grid-column:1/-1;border-left:0;border-top:1px solid var(--rule)}
}

/* At phone width the frames stack, at the ratios of their image types: the place 2:3, the bag and the detail 4:5. */
@media(max-width:600px){
.imd-publication .look-closer{grid-template-columns:1fr}
.imd-publication .look-closer .photo img{flex:none;min-height:0;aspect-ratio:4/5}
.imd-publication .look-closer>.photo:first-child img{aspect-ratio:2/3}
.imd-publication .look-closer>.photo+.photo{border-left:0;border-top:1px solid var(--rule)}
.imd-publication .look-closer>.copy{padding:25px 15px}
}

/* A joined pair (.look-closer.joined): the second and third frames show one photograph, drawn once across both, so
   its halves meet at the rule at every width. Each image is the pair's width (two frames and the rule) and the third
   is shifted back by one frame and the rule; one-line captions keep both halves the same height. Placement framing
   is set aside here: --joined-x and --joined-y place the photograph for the pair. At phone width the photograph is
   shown whole in the second frame and the third is left out. */
.imd-publication .look-closer.joined>.photo:nth-child(2),.imd-publication .look-closer.joined>.photo:nth-child(3){overflow:hidden}
.imd-publication .look-closer.joined>.photo:nth-child(2) img,.imd-publication .look-closer.joined>.photo:nth-child(3) img{width:calc(200% + 1px);max-width:none;object-fit:cover;object-position:var(--joined-x,50%) var(--joined-y,50%)!important;transform:none!important;clip-path:none!important}
.imd-publication .look-closer.joined>.photo:nth-child(3) img{margin-left:calc(-100% - 1px)}
.imd-publication .look-closer.joined>.photo:nth-child(2) figcaption,.imd-publication .look-closer.joined>.photo:nth-child(3) figcaption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){
.imd-publication .look-closer.joined>.photo:nth-child(2) img{width:100%;aspect-ratio:3/2}
.imd-publication .look-closer.joined>.photo:nth-child(3){display:none}
}

/* On the homepage the words sit under the three frames at every width, as they do below 1000px elsewhere. */
@media(min-width:1001px){
.imd-publication.assembled-home .look-closer{grid-template-columns:repeat(3,1fr)}
.imd-publication.assembled-home .look-closer>.copy{grid-column:1/-1;border-left:0;border-top:1px solid var(--rule)}
}
