/* Artlie Digital · Premium clean portfolio gallery v1.7
   Works with classic Artlie theme cards and Gutenberg builder cards.
   Narrowly scoped: no changes to project case studies, embeds or demos. */
:where(#work .projects,.artlie-b-project-grid){
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;align-items:stretch;
}
#work .work-scenery::before{opacity:.08}
#work .work-scenery::after{opacity:.08}
#work .sec-heading{margin-bottom:30px}
#work .sec-heading h2{letter-spacing:-.052em}
#work .sec-heading p,#work .artlie-b-intro{max-width:650px}
/* Shared card rhythm */
:where(#work .projects .project,.artlie-b-project-grid .artlie-b-card){
  display:flex!important;flex-direction:column;min-width:0;overflow:hidden;
  background:#12171e!important;border:1px solid #303640!important;
  border-radius:16px!important;box-shadow:none!important;
  transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease!important;
}
:where(#work .projects .project,.artlie-b-project-grid .artlie-b-card):hover{
  transform:translateY(-5px)!important;border-color:#70513f!important;
  box-shadow:0 20px 34px rgb(0 0 0 / .25)!important;
}
:where(#work .project-art,.artlie-b-project-grid .artlie-b-card-image){
  display:block!important;width:100%;height:auto!important;aspect-ratio:16/10!important;
  overflow:hidden;background:#171c24!important;border-radius:0!important;
  position:relative;
}
:where(#work .project-art,.artlie-b-project-grid .artlie-b-card-image)::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent 68%,rgb(8 12 16 / .20));
}
:where(#work .project-art img,.artlie-b-project-grid .artlie-b-card-image img){
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;
  transition:transform .4s ease;
}
:where(#work .projects .project,.artlie-b-project-grid .artlie-b-card):hover :where(.project-thumbnail,.artlie-b-card-image img){transform:scale(1.025)!important}
:where(#work .project-body,.artlie-b-project-grid .artlie-b-card-body){
  flex:1;display:flex;flex-direction:column;min-width:0;padding:22px 22px 20px!important;
}
:where(#work .project-kicker,.artlie-b-project-grid .artlie-b-card-category){
  display:block;color:#fb874d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  text-transform:uppercase;font-weight:800;font-size:10px!important;letter-spacing:1.05px;
  line-height:1.4;margin-bottom:11px;max-width:100%;
}
:where(#work .project-title,.artlie-b-project-grid .artlie-b-card-title){
  display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:0 0 10px;min-width:0;
}
:where(#work .project-title h3,.artlie-b-project-grid .artlie-b-card-title h3){
  margin:0!important;font-size:20px!important;line-height:1.25!important;
  letter-spacing:-.035em!important;color:#f5f7f9!important;min-width:0;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
:where(#work .project-title h3 a,.artlie-b-project-grid .artlie-b-card-title h3 a){color:inherit!important;}
:where(#work .project-title h3 a,.artlie-b-project-grid .artlie-b-card-title h3 a):hover{color:#ff925e!important}
:where(#work .project-arrow,.artlie-b-project-grid .artlie-b-card-arrow){
  flex:0 0 36px;width:36px!important;height:36px!important;border-radius:50%;
  border:1px solid #41464e!important;background:#191e25!important;color:#ff8850!important;
  display:grid!important;place-items:center;font-size:19px;text-decoration:none;line-height:1;
  transition:background .2s,border-color .2s,transform .2s;
}
:where(#work .project-arrow,.artlie-b-project-grid .artlie-b-card-arrow):hover{
  background:#ff681f!important;border-color:#ff681f!important;color:#121212!important;transform:translate(1px,-1px);
}
:where(#work .project-body>p,.artlie-b-project-grid .artlie-b-card-body>p){
  color:#aab3be!important;font-size:13px!important;line-height:1.65!important;
  margin:0 0 21px!important;min-height:0!important;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
:where(#work .project-body .tags,.artlie-b-project-grid .artlie-b-tech){
  display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:auto;
}
:where(#work .project-body .tag,.artlie-b-project-grid .artlie-b-tech span){
  font-size:10px!important;font-weight:600;color:#b6bfc8!important;
  border:1px solid #2d3540!important;background:#1a2029!important;
  border-radius:8px!important;padding:6px 10px!important;line-height:1.1;
}
/* Graceful fallback for sites that have not replaced the classic theme's PHP template. */
#work .project-body .tags .tag:nth-child(n+4){display:none}
/* Focus must remain visible and the whole picture/title must be clickable. */
:where(#work .project-art-link,#work .project-title a,.artlie-b-project-grid a):focus-visible{
  outline:2px solid #ff8b4f!important;outline-offset:3px;
}
@media(max-width:980px){
  :where(#work .projects,.artlie-b-project-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:19px!important}
}
@media(max-width:650px){
  :where(#work .projects,.artlie-b-project-grid){grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
  :where(#work .project-art,.artlie-b-project-grid .artlie-b-card-image){aspect-ratio:16/10!important}
  :where(#work .project-body,.artlie-b-project-grid .artlie-b-card-body){padding:19px!important}
  :where(#work .project-title h3,.artlie-b-project-grid .artlie-b-card-title h3){font-size:20px!important}
}
@media(prefers-reduced-motion:reduce){
  :where(#work .projects .project,.artlie-b-project-grid .artlie-b-card),
  :where(#work .project-art img,.artlie-b-project-grid .artlie-b-card-image img){transition:none!important;transform:none!important}
}
/* Theme v1.3 previously styled all title anchors as circular icon buttons. */
#work .project-title h3 a{
  width:auto!important;height:auto!important;border:0!important;border-radius:0!important;
  display:inline!important;place-items:unset!important;background:transparent!important;
  color:inherit!important;font-size:inherit!important;
}
#work .project-title h3 a:hover{background:transparent!important;color:#ff925e!important}
