/* Portfolio Styles */

/* ============================================
   PORTFOLIO SINGLE PAGE
   ============================================ */

.ehs-portfolio-single {
    --ehs-portfolio-bg: #ffffff;
    --ehs-portfolio-text: #2c3e50;
    --ehs-portfolio-meta: #7f8c8d;
    --ehs-portfolio-border: #ecf0f1;
    --ehs-portfolio-accent: var(--ehs-primary-color);
    --ehs-portfolio-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --ehs-portfolio-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Portfolio Hero Section */
.ehs-portfolio-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--ehs-portfolio-border);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ehs-portfolio-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(38, 30, 59, 0.85) 0%,
        rgba(38, 30, 59, 0.7) 50%,
        rgba(56, 46, 78, 0.8) 100%
    );
    z-index: 1;
}

.ehs-portfolio-hero .ehs-container {
    position: relative;
    z-index: 2;
}

.ehs-portfolio-hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ehs-portfolio-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.ehs-portfolio-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ehs-portfolio-breadcrumb a:hover {
    color: #ffffff;
}

.ehs-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
}

.ehs-breadcrumb-current {
    color: #ffffff;
    font-weight: 500;
}

.ehs-portfolio-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 32px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ehs-portfolio-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.ehs-portfolio-meta__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.ehs-portfolio-meta__icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

/* Portfolio Gallery Section */
.ehs-portfolio-gallery {
    padding: 80px 0;
    background: var(--ehs-portfolio-bg);
}

.ehs-portfolio-gallery__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.ehs-portfolio-gallery__main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ehs-portfolio-shadow);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ehs-portfolio-gallery__main:hover {
    box-shadow: var(--ehs-portfolio-hover-shadow);
    transform: translateY(-4px);
}

.ehs-portfolio-gallery__main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ehs-portfolio-gallery__main:hover .ehs-portfolio-gallery__main-image {
    transform: scale(1.05);
}

.ehs-portfolio-gallery__thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ehs-portfolio-gallery__thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ehs-portfolio-gallery__thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ehs-portfolio-gallery__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ehs-portfolio-gallery__thumbnail:hover img {
    transform: scale(1.1);
}

.ehs-portfolio-gallery__more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    backdrop-filter: blur(4px);
}

.ehs-portfolio-gallery__placeholder {
    text-align: center;
    padding: 80px 20px;
    color: var(--ehs-portfolio-meta);
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed var(--ehs-portfolio-border);
}

/* Portfolio Details Section */
.ehs-portfolio-details {
    padding: 80px 0;
    background: #f8f9fa;
}

.ehs-portfolio-details__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.ehs-portfolio-details__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ehs-portfolio-text);
    margin: 0 0 24px;
}

.ehs-portfolio-details__description {
    color: var(--ehs-portfolio-meta);
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 16px;
}

.ehs-portfolio-details__description p {
    margin-bottom: 16px;
}

.ehs-portfolio-cta {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--ehs-portfolio-shadow);
    text-align: center;
}

.ehs-portfolio-cta h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ehs-portfolio-text);
    margin: 0 0 16px;
}

.ehs-portfolio-cta p {
    color: var(--ehs-portfolio-meta);
    margin: 0 0 24px;
    line-height: 1.6;
}

.ehs-portfolio-details__sidebar {
    position: sticky;
    top: 120px;
}

.ehs-portfolio-info-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--ehs-portfolio-shadow);
    margin-bottom: 24px;
}

.ehs-portfolio-info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ehs-portfolio-text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ehs-portfolio-border);
}

.ehs-portfolio-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehs-portfolio-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ehs-portfolio-border);
}

.ehs-portfolio-info-list li:last-child {
    border-bottom: none;
}

.ehs-portfolio-info-list strong {
    color: var(--ehs-portfolio-text);
    font-weight: 600;
}

.ehs-portfolio-info-list span {
    color: var(--ehs-portfolio-meta);
    text-align: right;
}

.ehs-portfolio-stats {
    display: flex;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--ehs-portfolio-shadow);
}

.ehs-portfolio-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
    justify-content: center;
}

.ehs-portfolio-stat__icon {
    width: 18px;
    height: 18px;
    color: var(--ehs-portfolio-accent);
}

.ehs-portfolio-stat span {
    font-size: 14px;
    color: var(--ehs-portfolio-meta);
    font-weight: 500;
}

/* Clickable Like Styles */
.ehs-portfolio-stat--clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.ehs-portfolio-stat--clickable:hover {
    transform: scale(1.05);
    color: var(--ehs-portfolio-accent);
}

.ehs-portfolio-stat--clickable:hover .ehs-portfolio-like-icon {
    color: #e74c3c;
}

.ehs-portfolio-stat--liked {
    color: #e74c3c;
}

.ehs-portfolio-stat--liked .ehs-portfolio-like-icon {
    color: #e74c3c;
}

.ehs-portfolio-stat--loading {
    opacity: 0.7;
    pointer-events: none;
}

.ehs-portfolio-stat--already-liked .ehs-portfolio-like-text {
    color: #f39c12;
    font-style: italic;
}

/* Related Portfolio Section */
.ehs-related-portfolio {
    padding: 80px 0;
    background: white;
}

.ehs-related-portfolio__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ehs-portfolio-text);
    text-align: center;
    margin: 0 0 48px;
}

.ehs-related-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.ehs-portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ehs-portfolio-shadow);
    transition: all 0.3s ease;
}

.ehs-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ehs-portfolio-hover-shadow);
}

.ehs-portfolio-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ehs-portfolio-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.ehs-portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ehs-portfolio-card:hover .ehs-portfolio-card__image img {
    transform: scale(1.1);
}

.ehs-portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ehs-portfolio-card:hover .ehs-portfolio-card__overlay {
    opacity: 1;
}

.ehs-portfolio-card__view {
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--ehs-portfolio-accent);
    border-radius: 20px;
    font-size: 14px;
}

.ehs-portfolio-card__content {
    padding: 24px;
}

.ehs-portfolio-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ehs-portfolio-text);
    margin: 0 0 8px;
}

.ehs-portfolio-card__meta {
    color: var(--ehs-portfolio-meta);
    font-size: 14px;
    margin: 0;
}

.ehs-related-portfolio__cta {
    text-align: center;
}

/* Portfolio Modal */
.ehs-portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehs-portfolio-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.ehs-portfolio-modal__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehs-portfolio-modal__content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ehs-portfolio-modal__close,
.ehs-portfolio-modal__prev,
.ehs-portfolio-modal__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehs-portfolio-modal__close {
    top: 20px;
    right: 20px;
    font-size: 32px;
}

.ehs-portfolio-modal__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.ehs-portfolio-modal__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.ehs-portfolio-modal__close:hover,
.ehs-portfolio-modal__prev:hover,
.ehs-portfolio-modal__next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ehs-portfolio-modal__prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.ehs-portfolio-modal__next:hover {
    transform: translateY(-50%) scale(1.1);
}

.ehs-portfolio-modal__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

/* ============================================
   PORTFOLIO ARCHIVE PAGE
   ============================================ */

.ehs-portfolio-archive {
    background: white;
}

/* Portfolio Archive Hero */
.ehs-portfolio-hero {
    padding: 120px 0 100px;
    position: relative;
    color: var(--ehs-color-light);
    background: var(--ehs-color-dark);
    overflow: hidden;
}

.ehs-portfolio-hero .ehs-hero__media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    background-position: center;
    background-size: cover;
    z-index: 0;
}

.ehs-portfolio-hero .ehs-hero__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.ehs-portfolio-hero .ehs-hero__media-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(71, 85, 105, 0.2) 0%, transparent 55%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.3) 0%, transparent 60%);
    z-index: 2;
}

.ehs-portfolio-hero .ehs-hero__media-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.ehs-portfolio-hero .ehs-hero__content {
    position: relative;
    z-index: 3;
}

.ehs-portfolio-hero__layout {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ehs-portfolio-hero__title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ehs-portfolio-hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.ehs-portfolio-hero__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.ehs-portfolio-hero__stat {
    text-align: center;
    color: #ffffff;
}

.ehs-portfolio-hero__stat-number {
    display: block;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--ehs-color-primary);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ehs-portfolio-hero__stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Portfolio Grid */
.ehs-portfolio-grid {
    padding: 60px 0;
}

.ehs-portfolio-grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ehs-portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    aspect-ratio: 1;
}

.ehs-portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ehs-portfolio-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.ehs-portfolio-item__image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ehs-portfolio-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ehs-portfolio-item:hover .ehs-portfolio-item__image img {
    transform: scale(1.05);
}

.ehs-portfolio-item__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ehs-portfolio-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ehs-portfolio-item__gallery-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.ehs-portfolio-item__gallery-count svg {
    width: 12px;
    height: 12px;
}

.ehs-portfolio-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.6) 40%, 
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%
    );
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: all 0.3s ease;
}

.ehs-portfolio-item:hover .ehs-portfolio-item__overlay {
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0.3) 70%,
        transparent 100%
    );
}

.ehs-portfolio-item__content {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ehs-portfolio-item__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    color: #ffffff;
}

.ehs-portfolio-item__location {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.ehs-portfolio-item__location svg {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.ehs-portfolio-item__stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.ehs-portfolio-item__stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.ehs-portfolio-item__stat svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.ehs-portfolio-item__meta-item svg {
    width: 14px;
    height: 14px;
}

/* Portfolio Grid Empty State */

/* Empty State */
.ehs-portfolio-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.ehs-portfolio-empty {
    max-width: 400px;
    margin: 0 auto;
}

.ehs-portfolio-empty__icon {
    width: 64px;
    height: 64px;
    color: var(--ehs-portfolio-meta);
    margin: 0 auto 24px;
}

.ehs-portfolio-empty h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ehs-portfolio-text);
    margin: 0 0 16px;
}

.ehs-portfolio-empty p {
    color: var(--ehs-portfolio-meta);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Pagination */
.ehs-portfolio-pagination {
    margin-top: 80px;
    text-align: center;
}

.ehs-portfolio-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehs-portfolio-pagination .page-numbers li {
    margin: 0;
}

.ehs-portfolio-pagination .page-numbers a,
.ehs-portfolio-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 2px solid var(--ehs-portfolio-border);
    background: white;
    color: var(--ehs-portfolio-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ehs-portfolio-pagination .page-numbers a:hover,
.ehs-portfolio-pagination .page-numbers .current {
    background: var(--ehs-portfolio-accent);
    color: white;
    border-color: var(--ehs-portfolio-accent);
    transform: translateY(-2px);
}

/* Portfolio CTA Section */
.ehs-portfolio-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.ehs-portfolio-cta__content {
    max-width: 800px;
    margin: 0 auto;
}

.ehs-portfolio-cta__title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: var(--ehs-portfolio-text);
    margin: 0 0 16px;
    line-height: 1.3;
}

.ehs-portfolio-cta__subtitle {
    font-size: 18px;
    color: var(--ehs-portfolio-meta);
    line-height: 1.6;
    margin: 0 0 40px;
}

.ehs-portfolio-cta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.ehs-portfolio-cta__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.ehs-portfolio-cta__stat {
    text-align: center;
}

.ehs-portfolio-cta__stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--ehs-portfolio-accent);
    margin-bottom: 8px;
    line-height: 1;
}

.ehs-portfolio-cta__stat-label {
    font-size: 14px;
    color: var(--ehs-portfolio-meta);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Portfolio Single */
    .ehs-portfolio-hero {
        padding: 80px 0 60px;
        background-attachment: scroll;
    }
    
    .ehs-portfolio-meta {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .ehs-portfolio-gallery__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ehs-portfolio-gallery__main-image {
        height: 300px;
    }
    
    .ehs-portfolio-gallery__thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .ehs-portfolio-details__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ehs-portfolio-details__sidebar {
        position: static;
        order: -1;
    }
    
    .ehs-portfolio-stats {
        flex-direction: column;
        gap: 12px;
    }

    /* Portfolio Archive */
    .ehs-portfolio-hero {
        padding: 80px 0 60px;
    }
    
    .ehs-portfolio-hero__stats {
        gap: 24px;
        margin-top: 32px;
    }
    
    .ehs-portfolio-hero__stat-number {
        font-size: clamp(24px, 6vw, 32px);
    }
    
    .ehs-portfolio-grid {
        padding: 60px 0;
    }
    
    .ehs-portfolio-grid__container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .ehs-portfolio-item__overlay {
        padding: 12px;
    }
    
    .ehs-portfolio-item__title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .ehs-portfolio-item__location {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .ehs-portfolio-item__stats {
        font-size: 11px;
        gap: 8px;
    }    .ehs-portfolio-grid {
        padding: 60px 0;
    }
    
    .ehs-portfolio-grid__container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .ehs-portfolio-item__overlay {
        padding: 12px;
    }
    
    .ehs-portfolio-item__title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .ehs-portfolio-item__location {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .ehs-portfolio-item__stats {
        font-size: 11px;
        gap: 8px;
    }
    
    .ehs-portfolio-cta {
        padding: 80px 0;
    }
    
    .ehs-portfolio-cta__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ehs-portfolio-cta__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    /* Modal */
    .ehs-portfolio-modal__close,
    .ehs-portfolio-modal__prev,
    .ehs-portfolio-modal__next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .ehs-portfolio-modal__close {
        top: 10px;
        right: 10px;
    }
    
    .ehs-portfolio-modal__prev {
        left: 10px;
    }
    
    .ehs-portfolio-modal__next {
        right: 10px;
    }

}

@media (max-width: 480px) {
    .ehs-portfolio-breadcrumb {
        flex-direction: column;
        gap: 4px;
    }
    
    .ehs-breadcrumb-separator {
        display: none;
    }
    
    .ehs-portfolio-hero {
        padding: 60px 0 40px;
    }
    
    .ehs-portfolio-hero__stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 24px;
    }
    
    .ehs-portfolio-hero__stat-number {
        font-size: clamp(20px, 8vw, 28px);
    }
    
    .ehs-portfolio-grid__container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ehs-portfolio-item__overlay {
        padding: 10px;
    }
    
    .ehs-portfolio-item__title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .ehs-portfolio-item__location {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .ehs-portfolio-item__stats {
        font-size: 10px;
        gap: 6px;
    }
    
    .ehs-portfolio-meta__item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ehs-portfolio-gallery__thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ehs-portfolio-info-card,
    .ehs-portfolio-cta {
        padding: 24px;
    }
    
    .ehs-portfolio-cta__stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
