/* Gallery page (gallery/index.html) – layered on top of ../css/styles.css
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Hero: small crest beside the heading */
.gallery-hero .row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gallery-hero .logo.column,
.gallery-hero .quote.column {
    width: auto;
    margin-left: 0;
    padding-top: 0;
}

.gallery-hero .hero-heading,
#gallery .hero .hero-heading {
    padding-top: 0;
    margin: 0;
}

/* Content column */
.gallery {
    text-align: left;
}

.gallery-intro {
    font-size: 0.9em;
    margin-bottom: 4rem;
}

/* One photo */
.photo {
    margin-bottom: 6rem;
    scroll-margin-top: 1.5rem;
}

.photo:last-of-type {
    margin-bottom: 3rem;
}

.photo-title {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.photo-title a {
    color: inherit;
    text-decoration: none;
}

.photo-title a:hover::after {
    content: " #";
    color: #aaa;
}

.photo:target .photo-title {
    color: #FF6600;
}

.photo-img {
    display: block;
}

.photo-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #eee;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.download-button {
    display: inline-block;
    background-color: #FF6600;
    color: white;
    font-weight: 600;
    font-size: 1.6rem;
    padding: 1.1rem 2.4rem;
    border-radius: 100px;
    text-decoration: none;
}

.download-button:hover,
.download-button:focus {
    background-color: #e05500;
}

.download-size {
    font-size: 1.4rem;
    color: #666;
}

/* Datasheet */
.datasheet {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 1.5rem;
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
}

.datasheet dt {
    font-weight: 600;
    color: #555;
}

.datasheet dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 700px) {
    .datasheet {
        grid-template-columns: max-content 1fr max-content 1fr;
    }
}

.photo-license {
    font-size: 1.3rem;
    color: #555;
    background-color: #f5f5f5;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0;
}

/* DD Photos call-out (adapted from www.ddpoker.com) */
.dd-family {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 0 3rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid #a3c99a;
    border-radius: 8px;
    background-color: #f1f8ee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-size: 1.4rem;
    line-height: 1.5;
}

.dd-family-logo {
    display: block;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.dd-family-title {
    color: #2f7a1f;
    font-weight: 600;
    font-size: 1.7rem;
    padding-bottom: 0.4rem;
}

@media (max-width: 549px) {
    .dd-family {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}
