/* TTO Portfolio — Frontend CSS */
:root {
  --tto-red:   #E8152A;
  --tto-black: #0A0A0A;
  --tto-gray:  #666;
  --tto-light: #f0f0f0;
}

/* Grid shortcode */
.tto-portfolio-wrap {}
.tto-portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.tto-pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.tto-pf-btn:hover { border-color: #333; color: #333; }
.tto-pf-btn.active { background: var(--black, #060606); border-color: var(--black, #060606); color: #fff; }
.tto-pf-count { background: rgba(0,0,0,.1); border-radius: 10px; padding: 1px 7px; font-size: 10px; }
.tto-pf-btn.active .tto-pf-count { background: rgba(255,255,255,.15); }
.tto-no-results { padding: 60px 20px; text-align: center; color: #999; font-size: 15px; }

.tto-grid {
    display: grid;
    gap: 24px;
}
.tto-cols-3 { grid-template-columns: repeat(3,1fr); }
.tto-cols-2 { grid-template-columns: repeat(2,1fr); }
.tto-cols-1 { grid-template-columns: 1fr; }

.tto-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: box-shadow .25s, transform .25s;
}
.tto-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-3px);
}
.tto-card-link { display: block; text-decoration: none; color: inherit; }
.tto-card-img  { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #1a1a1a; }
.tto-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
.tto-card:hover .tto-card-img img { transform: scale(1.05); }
.tto-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,6,6,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}
.tto-card:hover .tto-card-overlay { background: rgba(6,6,6,.45); }
.tto-card-no-img { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: #f5f5f5; font-size: 40px; }
.tto-card-cta {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.6);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s;
    background: rgba(232,21,42,.85);
    border-color: transparent;
}
.tto-card:hover .tto-card-cta { opacity: 1; transform: none; }
.tto-card-type-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--red, #E8152A);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 12px;
}
.tto-card-info {
    padding: 18px 20px 20px;
    border-top: 3px solid var(--red, #E8152A);
    background: #fff;
}
.tto-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    margin: 0 0 6px;
}
.tto-card-meta {
    font-size: 11px;
    color: #999;
    margin: 0 0 8px;
    letter-spacing: .04em;
}
.tto-card-desc {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}
.tto-none { text-align: center; padding: 40px; color: var(--tto-gray); }

/* Single project overview */
.tto-overview { padding: 56px 0 40px; }
.tto-overview-inner { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.tto-about-label { font-family: var(--font-display, 'Bebas Neue'), sans-serif; font-size: 28px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--red, #E8152A); margin-bottom: 20px; display: flex; align-items: center; gap: 16px; line-height: 1; }
.tto-about-label::after { content: ''; flex: 1; height: 1px; background: rgba(232,21,42,.2); }
.tto-project-desc { font-size: 17px; line-height: 1.85; color: #444; }
.tto-project-desc p { margin-bottom: 20px; }
.tto-project-desc p:last-child { margin-bottom: 0; }

/* Details card */
.tto-sidebar {}
.tto-details-card {
    background: #060606;
    border-top: 3px solid var(--red, #E8152A);
    margin-bottom: 20px;
    overflow: hidden;
}
.tto-details-card .tto-details-title {
    font-family: var(--font-display, 'Bebas Neue'), sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff !important;
    padding: 24px 28px 20px;
    margin: 0;
    line-height: 1;
    border-bottom: 1px solid rgba(232,21,42,.25);
}
.tto-details-card .tto-details-dl {
    display: flex !important;
    flex-direction: column !important;
    padding: 0;
    margin: 0;
    list-style: none;
}
.tto-details-card .tto-details-dl dt {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--red, #E8152A) !important;
    padding: 20px 28px 4px !important;
    margin: 0 !important;
    line-height: 1;
    border: none !important;
    background: none !important;
    float: none !important;
    width: auto !important;
}
.tto-details-card .tto-details-dl dd {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    padding: 0 28px 18px !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    line-height: 1.3;
    float: none !important;
    width: auto !important;
    background: none !important;
}
.tto-details-card .tto-details-dl dd:last-child { border-bottom: none !important; }
.tto-details-card .tto-details-dl dd a { color: var(--red, #E8152A) !important; text-decoration: none; font-size: 15px !important; }
.tto-details-card .tto-details-dl dd a:hover { text-decoration: underline; }
.tto-back-link {
    display: block !important;
    text-align: center;
    padding: 14px 20px !important;
    background: var(--red, #E8152A) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: opacity .2s;
    margin-top: 4px;
    border: none !important;
}
.tto-back-link:hover { opacity: .85; color: #fff !important; }
.tto-section-label { font-family: var(--font-display, 'Bebas Neue'), sans-serif; font-size: 28px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--red, #E8152A); margin-bottom: 24px; line-height: 1; display: flex; align-items: center; gap: 16px; }
.tto-section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, rgba(232,21,42,.3) 0%, rgba(232,21,42,0) 100%); }


/* Photo grid */
.tto-gallery-section { padding-top: 8px; }
.tto-photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.tto-photo, .tto-photo-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    outline: 2px solid var(--red, #E8152A);
    outline-offset: -2px;
}
.tto-photo img, .tto-photo-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
}
.tto-photo:hover img, .tto-photo-wrap:hover img { transform: scale(1.06); }
.tto-photo-overlay {
    position: absolute; inset: 0;
    background: rgba(6,6,6,0);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: background .3s, opacity .3s;
    z-index: 1;
}
.tto-photo:hover .tto-photo-overlay, .tto-photo-wrap:hover .tto-photo-overlay {
    background: rgba(6,6,6,.42); opacity: 1;
}
/* White border trace on hover — top+right sweep in, then bottom+left */
.tto-photo::before, .tto-photo-wrap::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: scaleX(0) scaleY(0);
    transform-origin: top right;
    transition: transform 0s;
}
.tto-photo:hover::before, .tto-photo-wrap:hover::before {
    transform: scaleX(1) scaleY(1);
    transition: transform .32s ease;
}
.tto-photo::after, .tto-photo-wrap::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: scaleX(0) scaleY(0);
    transform-origin: bottom left;
    transition: transform 0s;
}
.tto-photo:hover::after, .tto-photo-wrap:hover::after {
    transform: scaleX(1) scaleY(1);
    transition: transform .32s ease .15s;
}

/* Timeline — no vertical line, no dot */
.tto-timeline-section { padding-top: 8px; }
.tto-timeline { display: flex; flex-direction: column; gap: 56px; }
.tto-phase { position: relative; }
.tto-phase-marker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tto-phase-dot { display: none; }
.tto-phase-date-badge { display: inline-block; background: var(--black, #060606); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; }
.tto-phase-content {}
.tto-phase-title { font-size: 22px; font-weight: 700; color: var(--tto-black, #060606); margin-bottom: 12px; }
.tto-phase-desc  { font-size: 17px; line-height: 1.85; color: #555; margin-bottom: 20px; }
.tto-phase-desc p { margin-bottom: 10px; }

/* Lightbox */
.tto-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.tto-lightbox.open { opacity: 1; pointer-events: all; }
.tto-lb-bg { position: absolute; inset: 0; background: rgba(0,0,0,.95); backdrop-filter: blur(4px); }
.tto-lb-wrap { position: relative; z-index: 1; max-width: min(90vw,1200px); max-height: 90vh; }
#tto-lb-img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.tto-lb-caption { font-size: 13px; color: rgba(255,255,255,.5); text-align: center; margin-top: 10px; }
.tto-lb-close,.tto-lb-prev,.tto-lb-next { position: absolute; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s; border-radius: 2px; }
.tto-lb-close { top: -42px; right: 0; width: 36px; height: 36px; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.tto-lb-prev,.tto-lb-next { top: 50%; transform: translateY(-50%); width: 44px; height: 60px; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.tto-lb-prev { left: -60px; } .tto-lb-next { right: -60px; }
.tto-lb-close:hover,.tto-lb-prev:hover,.tto-lb-next:hover { background: var(--tto-red); border-color: var(--tto-red); }

@media (max-width: 768px) {
  .tto-cols-3 { grid-template-columns: repeat(2,1fr); }
  .tto-cols-2 { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:600px){
  .tto-cols-3,.tto-cols-2 { grid-template-columns: 1fr; }
  .tto-overview-inner { grid-template-columns: 1fr; }
  .tto-photo-grid { grid-template-columns: repeat(2,1fr); }
  .tto-lb-prev { left: 8px; } .tto-lb-next { right: 8px; }
}

/* ── Photo Gallery ──────────────────────────────────────── */
.tto-gallery-wrap { }
.tto-gal-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.tto-gf-btn { background:transparent; border:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.6); padding:7px 18px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; transition:all .2s; }
.tto-gf-btn:hover,
.tto-gf-btn.active { background:var(--red,#E8152A); border-color:var(--red,#E8152A); color:#fff; }
.tto-gal-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:3px; }
.tto-gal-item { position:relative; aspect-ratio:4/3; overflow:hidden; background:#111; }
.tto-gal-item img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; display:block; }
.tto-gal-item:hover img { transform:scale(1.04); }
.tto-gal-item .tto-photo-overlay { position:absolute; inset:0; background:rgba(0,0,0,.4); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; font-size:22px; color:#fff; }
.tto-gal-item:hover .tto-photo-overlay { opacity:1; }
@media(max-width:600px){
  .tto-gal-grid { grid-template-columns:repeat(2,1fr); }
}

/* ── Lightbox license button ────────────────────────────── */
.tto-lb-license-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 20px;
    background: var(--red, #E8152A);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s, background .2s;
}
.tto-lb-license-btn:hover { opacity: .88; }
.tto-lb-license-btn.in-basket {
    background: #333;
    color: rgba(255,255,255,.7);
}
.tto-lb-license-btn.in-basket:hover {
    background: #555;
    opacity: 1;
}
.tto-lb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── YouTube embeds ─────────────────────────────────────── */
.tto-project-videos-section,
.tto-phase-video-list { margin: 32px 0; }
.tto-project-video-list { display: flex; flex-direction: column; gap: 28px; }
.tto-phase-video-list   { display: flex; flex-direction: column; gap: 24px; }
.tto-video-embed {}
.tto-video-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}
.tto-video-wrap {
    position: relative;
    width: 100%;
    max-width: 760px;
    height: 0;
    padding-bottom: min(56.25%, calc(760px * 0.5625));
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}









.tto-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Social icons ───────────────────────────────────────── */
.tto-socials-section { padding: 40px 0 20px; border-top: 1px solid #eee; margin-top: 20px; }
.tto-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.tto-social-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #060606;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.tto-social-icon:hover { background: var(--red, #E8152A); transform: translateY(-2px); color: #fff; }
.tto-social-icon svg { width: 18px; height: 18px; flex-shrink: 0; }
.tto-social-youtube:hover   { background: #FF0000; }
.tto-social-facebook:hover  { background: #1877F2; }
.tto-social-instagram:hover { background: #E1306C; }
.tto-social-twitter:hover   { background: #000; }
.tto-social-linkedin:hover  { background: #0A66C2; }
.tto-social-tiktok:hover    { background: #010101; }
.tto-social-vimeo:hover     { background: #1AB7EA; }
